https://sourceware.org/bugzilla/show_bug.cgi?id=20306
Bug ID: 20306 Summary: ld fails when linking with shared object, "--gc-sections" and "-u". Product: binutils Version: 2.27 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: ikudrin.dev at gmail dot com Target Milestone: --- The minimal reproducer: $ cat > test.c << EOF extern void foo(); void bar() {foo();} EOF $ gcc -fPIC -c test.c -o test.o $ ld -shared test.o -o test.so $ ld -u foo --gc-sections -e0 test.so -o test Segmentation fault (core dumped) -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils