[llvm-bugs] [Bug 31563] New: lld parses version scripts too late

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 6 07:17:44 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31563

            Bug ID: 31563
           Summary: lld parses version scripts too late
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Given a test.s with

.global _start
_start:
.quad foo

and test2.s with

.global "foo@@ver1"
"foo@@ver1":

If test2.o is put in a .a lld will fail to link:

ld.lld test.o test2.a -o t

The problem is that we parse the symbol names after resolution. This works for
shared libraries where the name was already parsed, but fails for .a files.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170106/3b2df8c3/attachment.html>


More information about the llvm-bugs mailing list