mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -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
27 lines
1011 B
ArmAsm
27 lines
1011 B
ArmAsm
// Check that we split debug output properly
|
|
//
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
|
|
//
|
|
// CHECK-ACTIONS: "-split-dwarf-file" "split-debug.dwo"
|
|
|
|
// Check we pass -split-dwarf-file to `as` if -gsplit-dwarf=split.
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=split -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
|
|
|
|
// Check we do not pass any -split-dwarf* commands to `as` if -gsplit-dwarf=single.
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=single -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
|
|
|
|
// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
|
|
//
|
|
// CHECK-NO-ACTIONS-NOT: -split-dwarf
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
|
|
//
|
|
// CHECK-BAD-NOT: "Bad.dwo"
|
|
|