https://sourceware.org/bugzilla/show_bug.cgi?id=24685
Nelson Chu <nelsonc1225 at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nelsonc1225 at sourceware dot org --- Comment #4 from Nelson Chu <nelsonc1225 at sourceware dot org> --- I can get the expected results when using the current mainline binutils. $ riscv64-unknown-linux-gnu-gcc -fuse-ld=bfd -fpie -pie a.c -o a && riscv64-unknown-linux-gnu-readelf -W --dyn-s a | grep puts 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND puts@GLIBC_2.27 (2) $ riscv64-unknown-linux-gnu-gcc -fuse-ld=bfd -fpie -no-pie a.c -o a && riscv64-unknown-linux-gnu-readelf -W --dyn-s a | grep puts 1: 0000000000010400 0 FUNC GLOBAL DEFAULT UND puts@GLIBC_2.27 (2) I believe the commit 3b1450b38c644f99aa2e211747b428b9f8d15cca fix it. -- You are receiving this mail because: You are on the CC list for the bug.