https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109889
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > r2 is the toc pointer, so having it 0 is weird. > Looking at glibc-2.36-10.fc37 (not sure if you are using a different one), I glibc-2.36-9.fc37.ppc64le > see > 000000000005b560 <__run_exit_handlers>: > 5b560: 21 00 4c 3c addis r2,r12,33 > 5b564: a0 b9 42 38 addi r2,r2,-18016 > ... > 5b5a8: 18 00 41 f8 std r2,24(r1) > so wonder what x/1gx $r1+24 is. (gdb) x/1gx $r1+24 0x7fffffffe8d8: 0x0000000000000000