1 # RUN: llvm-objdump -r %p/Inputs/xcoff-section-headers.o | \
2 # RUN: FileCheck --match-full-lines --strict-whitespace %s
4 # RUN: llvm-objdump -r --symbol-description %p/Inputs/xcoff-section-headers.o | \
5 # RUN: FileCheck --match-full-lines --strict-whitespace --check-prefix=DESCP %s
7 ## xcoff-section-headers.o Compiled with IBM XL C/C++ for AIX, V16.1.0
8 ## compiler command: xlc -qtls -o xcoff-section-headers.o -c test.c
13 ## __thread double d = 3.14159;
19 CHECK:RELOCATION RECORDS FOR [.text]:
20 CHECK-NEXT:OFFSET TYPE VALUE
21 CHECK-NEXT:00000002 R_TOC a
23 CHECK:RELOCATION RECORDS FOR [.data]:
24 CHECK-NEXT:OFFSET TYPE VALUE
25 CHECK-NEXT:00000000 R_POS func
26 CHECK-NEXT:00000004 R_POS a
27 CHECK-NEXT:00000008 R_POS b
28 CHECK-NEXT:0000000c R_TLS c
29 CHECK-NEXT:00000010 R_TLS d
30 CHECK-NEXT:00000014 R_POS .func
31 CHECK-NEXT:00000018 R_POS TOC
34 DESCP:RELOCATION RECORDS FOR [.text]:
35 DESCP-NEXT:OFFSET TYPE VALUE
36 DESCP-NEXT:00000002 R_TOC (idx: 26) a[TC]
38 DESCP:RELOCATION RECORDS FOR [.data]:
39 DESCP-NEXT:OFFSET TYPE VALUE
40 DESCP-NEXT:00000000 R_POS (idx: 20) func[DS]
41 DESCP-NEXT:00000004 R_POS (idx: 24) a[RW]
42 DESCP-NEXT:00000008 R_POS (idx: 28) b[RW]
43 DESCP-NEXT:0000000c R_TLS (idx: 32) c[UL]
44 DESCP-NEXT:00000010 R_TLS (idx: 36) d[TL]
45 DESCP-NEXT:00000014 R_POS (idx: 16) .func
46 DESCP-NEXT:00000018 R_POS (idx: 18) TOC[TC0]