[Bug binutils/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread andi-bz at firstfloor dot org
--- Additional Comments From andi-bz at firstfloor dot org 2010-09-07 06:49 --- On further consideration I suspect patching the makefiles to pass the plugin to ar would be complicated (one goal of gcc LTO is to avoid patching makefiles as much as possible) Would it be possible to let go

[Bug binutils/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread ccoutant at google dot com
--- 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://so

[Bug binutils/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread andi-bz at firstfloor dot org
--- 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 t

[Bug binutils/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread ian at airs dot com
--- 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 sy

[Bug binutils/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread ian at airs dot com
-- What|Removed |Added AssignedTo|ian at airs dot com |unassigned at sources dot ||redhat dot com http://sourceware.or

bug report

2010-09-06 Thread Bin Zeng
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

[Bug gold/11988] plugin claimed symbols are not used for ar resolution

2010-09-06 Thread andi-bz at firstfloor dot org
--- 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=4966&action=view) test case Run make. Needs gcc 4.5+ with linker plugin. -- http://sourceware.org/bugzilla/show_bug.

[Bug gold/11988] New: plugin claimed symbols are not used for ar resolution

2010-09-06 Thread andi-bz at firstfloor dot org
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 cla

[Bug gold/11985] GOLD seg-faults if it cannot create needed output sections

2010-09-06 Thread nickc at redhat dot com
--- 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

[Bug gold/11985] GOLD seg-faults if it cannot create needed output sections

2010-09-06 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-09-06 08:54 --- Created an attachment (id=4964) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4964&action=view) Add debug output for sections which could not be created -- http://sourceware.org/bugzilla/show_bug.cgi?

[Bug gold/11985] New: GOLD seg-faults if it cannot create needed output sections

2010-09-06 Thread nickc at redhat dot com
GOLD assumes that it will be able to find or create certain output sections, eg .dynamic, ,dynstr, etc. When it is unable to do so, a segmentation fault occurs because of indirection via a NULL pointer. For example: % gcc -c hello.c[hello.c is a simple hello world type program] % cat dis