mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
b65edffc2d
DWARF5 spec says about single file split case: "The sections that do not require relocation, however, can be written to the relocatable object (.o) file but ignored by the the linker or they can be written to a separate DWARF object (.dwo) file that need not be accessed by the linker." Nice way to make linker to ignore them is to set SHF_EXCLUDE flag. It seems to be not harmful to always set it for .dwo sections. That is what this patch does. Differential revision: https://reviews.llvm.org/D52303 llvm-svn: 342800
33 lines
700 B
ArmAsm
33 lines
700 B
ArmAsm
# RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
|
|
# RUN: llvm-readobj -s --elf-output-style=GNU %t.o | FileCheck %s
|
|
|
|
## Check we add SHF_EXCLUDE flag for .dwo debug sections.
|
|
# CHECK: .debug_info.dwo {{.*}} E
|
|
# CHECK: .debug_types.dwo {{.*}} E
|
|
# CHECK: .debug_abbrev.dwo {{.*}} E
|
|
# CHECK: .debug_str.dwo {{.*}} EMS
|
|
# CHECK: .debug_line.dwo {{.*}} E
|
|
# CHECK: .debug_loc.dwo {{.*}} E
|
|
# CHECK: .debug_str_offsets.dwo {{.*}} E
|
|
|
|
.section .debug_info.dwo
|
|
nop
|
|
|
|
.section .debug_types.dwo
|
|
nop
|
|
|
|
.section .debug_abbrev.dwo
|
|
nop
|
|
|
|
.section .debug_str.dwo
|
|
nop
|
|
|
|
.section .debug_line.dwo
|
|
nop
|
|
|
|
.section .debug_loc.dwo
|
|
nop
|
|
|
|
.section .debug_str_offsets.dwo
|
|
nop
|