|
From: | ikudrin.dev at gmail dot com |
Subject: | [Bug ld/20306] New: ld fails when linking with shared object, "--gc-sections" and "-u". |
Date: | Tue, 28 Jun 2016 11:42:07 +0000 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |