llvm-for-llvmta/test/tools/obj2yaml/ELF/DWARF/unrecognized-debug-section....

20 lines
446 B
YAML
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## Test dumping a debug section when its name is not recognized by obj2yaml.
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: - Name: .debug_foo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Content: '01020304'
# CHECK-NEXT: ...
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Sections:
- Name: .debug_foo
Type: SHT_PROGBITS
Content: '01020304'