# REQUIRES: powerpc-registered-target # RUN: llvm-objdump -D %p/Inputs/xcoff-section-headers.o | \ # RUN: FileCheck %s # RUN: llvm-objdump -D -r %p/Inputs/xcoff-section-headers.o | \ # RUN: FileCheck --check-prefixes=CHECK,WITH-R %s ## xcoff-section-headers.o Compiled with IBM XL C/C++ for AIX, V16.1.0 ## compiler command: xlc -qtls -o xcoff-section-headers.o -c test.c ## test.c: ## int a; ## int b = 12345; ## __thread int c; ## __thread double d = 3.14159; ## ## int func(void) { ## return a; ## } CHECK: Inputs/xcoff-section-headers.o: file format aixcoff-rs6000 CHECK: Disassembly of section .text: CHECK: 00000000 <.text>: CHECK-NEXT: 0: 80 62 00 04 lwz 3, 4(2) WITH-R-NEXT: 00000002: R_TOC a CHECK-NEXT: 4: 80 63 00 00 lwz 3, 0(3) CHECK-NEXT: 8: 4e 80 00 20 blr CHECK-NEXT: c: 00 00 00 00 CHECK-NEXT: 10: 00 00 20 40 CHECK-NEXT: 14: 00 00 00 01 CHECK-NEXT: 18: 00 00 00 0c CHECK-NEXT: 1c: 00 04 66 75 CHECK-NEXT: 20: 6e 63 00 00 xoris 3, 19, 0 CHECK-NEXT: ... CHECK: Disassembly of section .data: CHECK: 00000080 : CHECK-NEXT: 80: 00 00 00 94 WITH-R-NEXT: 00000080: R_POS func CHECK: 00000084 : CHECK-NEXT: 84: 00 00 00 a4 WITH-R-NEXT: 00000084: R_POS a CHECK: 00000088 : CHECK-NEXT: 88: 00 00 00 a0 WITH-R-NEXT: 00000088: R_POS b CHECK: 0000008c : CHECK-NEXT: 8c: 00 00 00 08 WITH-R-NEXT: 0000008c: R_TLS c CHECK: 00000090 : CHECK-NEXT: 90: 00 00 00 00 WITH-R-NEXT: 00000090: R_TLS d CHECK: 00000094 : CHECK-NEXT: 94: 00 00 00 00 WITH-R-NEXT: 00000094: R_POS .func CHECK-NEXT: 98: 00 00 00 80 WITH-R-NEXT: 00000098: R_POS TOC CHECK-NEXT: 9c: 00 00 00 00 CHECK: 000000a0 : CHECK-NEXT: a0: 00 00 30 39 CHECK: Disassembly of section .bss: CHECK: 000000a4 : CHECK-NEXT: ... CHECK: Disassembly of section .tdata: CHECK: 00000000 : CHECK-NEXT: 0: 40 09 21 f9 bdnzfl 9, 0x21f8 CHECK-NEXT: 4: f0 1b 86 6e CHECK: Disassembly of section .tbss: CHECK: 00000008 : CHECK-NEXT: ...