http://sourceware.org/bugzilla/show_bug.cgi?id=12488
Summary: Fails with plugins and weak, hidden symbols Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: rafael.espind...@gmail.com This works: $ ./gold/ld-new -plugin ./gold/testsuite/plugin_test.so --no-demangle -shared -o test.so bar.o foo.o API version: 1 gold version: 111 bar.o: claim file hook called (offset = 0, size = 936) foo.o: claim file hook called (offset = 0, size = 1176) all symbols read hook called cleanup hook called But this fails: $ ./gold/ld-new -plugin ./gold/testsuite/plugin_test.so --no-demangle -shared -o test.so bar.syms foo.o API version: 1 gold version: 111 bar.syms: claim file hook called (offset = 0, size = 596) bar.syms: claiming file, adding 1 symbols foo.o: claim file hook called (offset = 0, size = 1176) all symbols read hook called bar.syms: xyz: PREVAILING_DEF_REG bar.o: adding new input file ./gold/ld-new: error: foo.o: requires dynamic reloc which may overflow at runtime; recompile with -fPIC ./gold/ld-new: foo.o: in function bar:foo.ll(.text+0x4): warning: relocation refers to discarded section ./gold/ld-new: error: hidden symbol 'xyz' is not defined locally cleanup hook called -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils