------- Additional Comments From espindola at google dot com  2009-10-27 19:08 
-------
I have reduced the test a bit. What is happening:

1) We compile each .c file into a .o. main.o defines main and foo.o defines foo
2) The plugin claims the files and tells the linker about both symbols
3) LTO happens and with -fwhole-program GCC drops foo
4) The linker gets confused with --gc-sections and a missing symbol

The bug goes away if --gc-sections or -fwhole-program is not used.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10842

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to