[llvm-bugs] [Bug 37466] New: MC should support writing two object files for split dwarf
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 14 21:07:37 PDT 2018
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: unassignedbugs at nondot.org
Reporter: peter at pcc.me.uk
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180515/3c1b844c/attachment-0001.html>
More information about the llvm-bugs
mailing list