diff --git a/llvm/test/tools/llvm-objdump/ELF/PowerPC/section-headers-debug.test b/llvm/test/tools/llvm-objdump/ELF/PowerPC/section-headers-debug.test --- a/llvm/test/tools/llvm-objdump/ELF/PowerPC/section-headers-debug.test +++ b/llvm/test/tools/llvm-objdump/ELF/PowerPC/section-headers-debug.test @@ -0,0 +1,43 @@ +## Check the `--section-headers` option can print the DEBUG type. +# RUN: yaml2obj %s -o %t +# RUN: llvm-objdump --section-headers %t | FileCheck %s + +# CHECK: Sections: +# CHECK-NEXT: Idx Name Size VMA Type +# CHECK-NEXT: 0 00000000 0000000000000000 +# CHECK-NEXT: 1 .text 00000000 0000000000000000 TEXT +# CHECK-NEXT: 2 .data 00000010 0000000000000000 DATA +# CHECK-NEXT: 3 .bss 00000000 0000000000000010 BSS +# CHECK-NEXT: 4 .debug_abbrev 0000000a 0000000000000000 DEBUG +# CHECK-NEXT: 5 .debug_info 0000000a 0000000000000000 DEBUG +# CHECK-NEXT: 6 .debug_line 0000000a 0000000000000000 DEBUG +# CHECK-NEXT: 7 .strtab 00000001 0000000000000000 +# CHECK-NEXT: 8 .shstrtab 0000004a 0000000000000000 + +--- !ELF +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_EXEC + Machine: EM_PPC64 +Sections: + - Name: .text + Type: SHT_PROGBITS + Flags: [ SHF_ALLOC, SHF_EXECINSTR ] + - Name: .data + Type: SHT_PROGBITS + Flags: [ SHF_WRITE, SHF_ALLOC ] + Content: '00000000000000000000000000000000' + - Name: .bss + Type: SHT_NOBITS + Flags: [ SHF_WRITE, SHF_ALLOC ] + - Name: .debug_abbrev + Type: SHT_PROGBITS + Content: 011B033B100000000100 + - Name: .debug_info + Type: SHT_PROGBITS + Content: 1000D40101002C000000 + - Name: .debug_line + Type: SHT_PROGBITS + Content: 3600000004001B000000 + diff --git a/llvm/test/tools/llvm-objdump/XCOFF/Inputs/xcoff-debug-32.o b/llvm/test/tools/llvm-objdump/XCOFF/Inputs/xcoff-debug-32.o index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@