[llvm-bugs] [Bug 34189] New: archive libraries larger than 4G get bad archive symbol table entries

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 14 17:55:37 PDT 2017


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

            Bug ID: 34189
           Summary: archive libraries larger than 4G get bad archive
                    symbol table entries
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Object
          Assignee: unassignedbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: llvm-bugs at lists.llvm.org, phosek at chromium.org

The traditional archive symbol table format uses 32-bit offsets into the
archive.  This obviously breaks down when the offset to some member is >=4G.

GNU ar/ranlib detects the situation and switches to the "/SYM64/" format for
the archive symbol table, which is just the same format but with 64-bit
offsets.

llvm-ar silently writes an archive with a bogus archive symbol table when its
output file contains a member that starts at >=4G.

AFAICT lld and other tools do not grok the "/SYM64/" format in their inputs.

-- 
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/20170815/136c2b45/attachment.html>


More information about the llvm-bugs mailing list