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: unassignedb...@nondot.org
          Reporter: stefan.reinal...@molecular-matters.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to