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

            Bug ID: 37466
           Summary: MC should support writing two object files for split
                    dwarf
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedb...@nondot.org
          Reporter: pe...@pcc.me.uk
                CC: llvm-bugs@lists.llvm.org

Currently, -gsplit-dwarf is implemented by using MC to create an object file,
and then using objcopy to split it in two. This has a few disadvantages:

- makes it hard to store symbol metadata (such as address-significance) that
refers to symbols by symbol table index, since objcopy can and will change the
order of the symbols in the symbol table
  - it's possible to store the information in such a way that a linker can
recognize that objcopy has operated on the object file and ignore the
information if that is the case, but that won't do any good if objcopy runs on
every file
- means that every user of split dwarf needs to know how to use objcopy to
split the file, including libraries (such as the LTO library; see
https://reviews.llvm.org/D44792)
- is probably also slower than writing the files directly.

Instead, we should teach MC to write two object files, one with non-.dwo
sections and the other with .dwo sections.

-- 
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