[Bug debug/95482] New: Feature request: add -gsplit-dwarf=single
i at maskray dot me
gcc-bugzilla@gcc.gnu.org
Tue Jun 2 17:03:57 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95482
Bug ID: 95482
Summary: Feature request: add -gsplit-dwarf=single
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: i at maskray dot me
Target Milestone: ---
DWARF v5 Appendix F. says
> The sections that do not require relocation, however, can be written to the relocatable object (.o) file but ignored by the linker, or they can be written to a separate DWARF object (.dwo) file that need not be accessed by the linker.
GCC/clang -gsplit-dwarf write a separate DWARF object (.dwo)
clang in addition supports -gsplit-dwarf=single
(https://reviews.llvm.org/D52296 ) to write the sections (with the SHF_EXCLUDE
flag) in the .o file.
Linkers ignore SHF_EXCLUDE sections in non -r mode.
Note, SHF_EXCLUDE (0x80000000) is in the range of processor-specific bits and
clashes with several processors's (obsoleted?) flags (see
https://sourceware.org/pipermail/binutils/2020-April/110691.html )
More information about the Gcc-bugs
mailing list