[Bug binutils/11988] plugin claimed symbols are not used for ar resolution
--- 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 gold fall back to scanning the objects inside the ar (using the plugin) if there is no symbol table? I read that BSD ar doesn't have a symbol table, so presumably that would be needed anyways for such a port? -- 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 13:19 --- BSD ar does have a symbol table. All versions of ar since about 1977 have a symbol table. It would be possible to have gold scan an entire archive if there is no symbol table. The problem here is that there will be a symbol table. It will just be empty, or relatively empty (what does nm -s report for this archive?). I don't think it would be entirely reasonable to have gold simply assume that an archive with an empty symbol table might contain objects with LTO information. One possibility might be to extend the plugin interface to let the plugin choose to handle archives itself. Then the gcc LTO plugin would be able to choose to handle archives under some conditions. Perhaps when gcc generates an object with LTO symbol information but no real symbol information it could generate a common symbol with some magic name which would wind up in the archive symbol table. The plugin could then look for that magic name and change the way that the archive is handled. Somehow. -- 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 13:33 --- Thanks. Looks like the ar plugin is easier and I guess one could use an ar wrapper for it. The main problem I have with it currently is that it doesn't work :/ See http://sourceware.org/bugzilla/show_bug.cgi?id=11991 -- 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
-- 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