1# RUN: llvm-objdump --section-headers %p/Inputs/xcoff-section-headers.o | \ 2# RUN: FileCheck %s 3 4# RUN: llvm-objdump --section-headers %p/Inputs/xcoff-long-sec-names.o | \ 5# RUN: FileCheck --check-prefix=LONG %s 6 7# RUN: not llvm-objdump --section-headers 2>&1 \ 8# RUN: %p/Inputs/xcoff-section-headers-truncate.o | FileCheck \ 9# RUN: --check-prefix=ERROR %s 10 11# ERROR: The end of the file was unexpectedly encountered 12 13# CHECK: xcoff-section-headers.o: file format aixcoff-rs6000 14# CHECK: Sections: 15# CHECK: Idx Name Size VMA Type 16# CHECK: 0 .text 00000080 00000000 TEXT 17# CHECK: 1 .data 00000024 00000080 DATA 18# CHECK: 2 .bss 00000004 000000a4 BSS 19# CHECK: 3 .tdata 00000008 00000000 DATA 20# CHECK: 4 .tbss 00000004 00000008 BSS 21 22# xcoff-section-headers.o Compiled with IBM XL C/C++ for AIX, V16.1.0 23# test.c: 24# int a; 25# int b = 12345; 26# __thread int c; 27# __thread double d = 3.14159; 28# 29# int func(void) { 30# return a; 31# } 32 33# LONG: xcoff-long-sec-names.o: file format aixcoff-rs6000 34# LONG: Sections: 35# LONG: Idx Name Size VMA Type 36# LONG: 0 .dwarnge 00000004 00000000 37# LONG: 1 .dwpbnms 00000004 00000000 38# LONG: 2 .dwpbtyp 00000004 00000000 39 40# xcoff-long-sec-names.o was generated by assembling the following .s file: 41# .dwsect 0x30000 # .dwpbnms section 42# .dwsect 0x40000 # .dwpbtyp section 43# .dwsect 0x50000 # .dwarnge section 44