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