https://sourceware.org/bugzilla/show_bug.cgi?id=32499
--- Comment #1 from Sam James <sam at gentoo dot org> --- Created attachment 15859 --> https://sourceware.org/bugzilla/attachment.cgi?id=15859&action=edit pr32499.sh $ gcc --version | head -1 ; ld --version | head -1 gcc (Gentoo Hardened 15.0.9999 p, commit 01d33f6be28d09edb2e9aaa66feab7a1b359aa60) 15.0.0 20241222 (experimental) cf59bf844037ae952f5058d0fd49e1f4f0cf907e GNU ld (Gentoo 9999 p1) 2.43.50.20241223 $ ./pr32499.sh + : gcc + cat + cat + test + rm pr18841a.o pr18841c.o libpr18841c.so pr18841c + gcc -fno-PIE pr18841a.c -c -o pr18841a.o + gcc -fPIC pr18841c.c -c -o pr18841c.o + gcc -shared pr18841c.o -o libpr18841c.so + gcc -no-pie pr18841a.o libpr18841c.so -o pr18841c + LD_LIBRARY_PATH=. + ./pr18841c ./pr32499.sh: line 40: 1244135 Segmentation fault (core dumped) LD_LIBRARY_PATH=. ./pr18841c $ readelf libpr18841c.so -r Relocation section '.rela.dyn' at offset 0x370 contains 9 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000001e30 000000000003 R_RISCV_RELATIVE 4ce 000000001e38 000000000003 R_RISCV_RELATIVE 496 000000002000 000000000003 R_RISCV_RELATIVE 2000 000000001fd8 000200000002 R_RISCV_64 0000000000000000 _ITM_deregisterTM[...] + 0 000000001fe0 000800000002 R_RISCV_64 0000000000002008 pz + 0 000000001fe8 000400000002 R_RISCV_64 0000000000000000 __cxa_finalize@GLIBC_2.27 + 0 000000001ff0 000500000002 R_RISCV_64 0000000000000000 _ITM_registerTMCl[...] + 0 000000001ff8 000600000002 R_RISCV_64 foo() foo + 0 000000002008 000300000002 R_RISCV_64 0000000000000000 zoo + 0 -- You are receiving this mail because: You are on the CC list for the bug.