https://sourceware.org/bugzilla/show_bug.cgi?id=16530
Bug ID: 16530 Summary: --dynamic-list does not protect symbols from being garbage collected Product: binutils Version: 2.25 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ian at airs dot com Reporter: eugeni.stepanov at gmail dot com CC: ccoutant at google dot com $ cat z.cc extern "C" void f() {} int main() { return 0; } $ cat z.syms { f; }; $ g++ z.cc -o z -Wl,--dynamic-list,z.syms -Wl,--gc-sections -ffunction-sections $ objdump -T z With Gold linker (today's trunk), f is not exported from the executable. With BFD linker, it is exported as a local(?) symbol. -- 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