[llvm-bugs] [Bug 36277] New: PDB * Linker * module does not contain COFF groups

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 7 08:44:49 PST 2018


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

            Bug ID: 36277
           Summary: PDB * Linker * module does not contain COFF groups
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: stefan.reinalter at molecular-matters.com
                CC: llvm-bugs at lists.llvm.org

PDBs produced by MSVC's linker contain a * Linker * compiland that stores COFF
groups as SymTagCoffGroup children of this linker compiland, such as the
following (output produced using DIA2Dump):

CoffGroup      : [0x0001:0x00000000]  0x00001000, len = 00003310,
characteristics = 60000020, .text$di
CoffGroup      : [0x0002:0x0000030c]  0x0001630C, len = 00000164,
characteristics = 40000040, .CRT$XCU
CoffGroup      : [0x000a:0x00000000]  0x00023000, len = 00000104,
characteristics = 40000040, .some_custom_read_only_section
CoffGroup      : [0x000c:0x00000000]  0x00025000, len = 00000104,
characteristics = C0000040, .tls

PDBs produced by lld contain the * Linker * compiland but don't store any COFF
groups.

Is this something that could be added to lld?
This is *very* useful information for finding e.g. dynamic initializers,
symbols in thread-local storage, as well as symbols in certain user-defined
sections where you don't know the symbols' names beforehand, but need to be
able to enumerate them.

-- 
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/20180207/3104fce9/attachment.html>


More information about the llvm-bugs mailing list