mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-29 08:19:01 -04:00

The DWARF5 specification says(Appendix F.1): "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." The first part describes a single file split DWARF feature and there is no way to trigger this behavior atm. Fortunately, no many changes are required to keep *.dwo sections in a .o, the patch does that. Differential revision: https://reviews.llvm.org/D52296 llvm-svn: 346837
18 lines
813 B
C
18 lines
813 B
C
// REQUIRES: x86-registered-target
|
|
|
|
// Testing to ensure -enable-split-dwarf=single allows to place .dwo sections into regular output object.
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
|
|
// RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s
|
|
// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SINGLE %s
|
|
// MODE-SINGLE: .dwo
|
|
|
|
// Testing to ensure -enable-split-dwarf=split does not place .dwo sections into regular output object.
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
|
|
// RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s
|
|
// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SPLIT %s
|
|
// MODE-SPLIT-NOT: .dwo
|
|
|
|
int main (void) {
|
|
return 0;
|
|
}
|