[Bug gold/11985] GOLD seg-faults if it cannot create needed output sections
--- Additional Comments From nickc at redhat dot com 2010-09-06 08:56 --- I have just uploaded a small patch which adds debug information to gold for when it tries and fails to create an output section. Enabled by running gold with the --debug script option. I am not sure whether it should be applied or not. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11985 --- 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
[Bug gold/11988] New: plugin claimed symbols are not used for ar resolution
This only shows with the gcc lto plugin, but I believe it's a gold issue. I did some experiments with gcc LTO object files that only contain LTO information, but no additional normal symbol table and code. This works fine with normal .o files. The gcc lto plugin reads the LTO symbol table and claims the symbols and everything works. But it fails with ar archives. I verified the plugin reads them correctly and claims the symbols in them, but then these symbols don't get used for resolution and the linker complains about unresolved symbols. I created a test case for this. This requires a gcc 4.5 (or later) configured with linker plugin support. Expect behaviour would be linking the main program, but it errors out with unresolved symbol 'c'. So it looks like the plugin claimed symbols are ignored for ar? (and this just normally worked because the backup symbol table was around) Verified with recent binutils git (2010-08-27) -- Summary: plugin claimed symbols are not used for ar resolution Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: andi-bz at firstfloor dot org CC: bug-binutils at gnu dot org GCC host triplet: x86_64-linux http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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
[Bug gold/11988] plugin claimed symbols are not used for ar resolution
--- Additional Comments From andi-bz at firstfloor dot org 2010-09-06 16:50 --- Created an attachment (id=4966) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4966action=view) test case Run make. Needs gcc 4.5+ with linker plugin. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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
bug report
Hi, I encountered a bug in the newest version of binutils. 1. I checked out the fresh source code from the cvs repository by cvs -z 9 -d :pserver:anon...@sourceware.org:/cvs/src co binutils So the binutils must be the newest version. 2. The installation was configured with ../src/configure --enable-gold --enable-plugins 3. the gcc version # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../gcc-src/configure --enable-shared --enable-threads=posix --enable-checking=release --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,fortran --enable-java-awt=gtk --disable-dssi --enable-plugin --with-cpu=generic Thread model: posix gcc version 4.6.0 20100902 (experimental) GCC 4. The error message: ../../src/gold/plugin.cc: 618:13: error: variable 'sym_size' set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors I tried to delete -Werror from the Makefile but I could not find it. Thanks a lot!!! Bin ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11988] plugin claimed symbols are not used for ar resolution
-- What|Removed |Added AssignedTo|ian at airs dot com |unassigned at sources dot ||redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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
[Bug binutils/11988] plugin claimed symbols are not used for ar resolution
--- Additional Comments From ian at airs dot com 2010-09-07 04:46 --- An archive is expected to have a symbol map, which the linker uses to determine which objects to include from the archive. If your objects don't have regular symbols, then the ar program is not going to be build a symbol map. So I don't think this is a gold bug. I think it is a deficiency in the ar program: for full LTO support, the ar program should build a symbol map from the LTO symbols if there are no normal symbols. Or something like that. -- What|Removed |Added CC||ccoutant at google dot com Component|gold|binutils http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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
[Bug binutils/11988] plugin claimed symbols are not used for ar resolution
--- Additional Comments From andi-bz at firstfloor dot org 2010-09-07 05:14 --- I see. I didn't know that. I'll look into fixing ar then. Thanks. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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
[Bug binutils/11988] plugin claimed symbols are not used for ar resolution
--- Additional Comments From ccoutant at google dot com 2010-09-07 05:22 --- I think Rafael Espindola added plugin support to bfd already, so it should be possible to use the same plugin when running ar. See: http://sourceware.org/ml/binutils/2009-05/msg00199.html -- http://sourceware.org/bugzilla/show_bug.cgi?id=11988 --- 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