bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: andi-bz at firstfloor dot org
Subject: [Bug gold/11988] New: plugin claimed symbols are not used for ar resolution
Date: 6 Sep 2010 16:49:51 -0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]