1 ## Test that we are able to print dynamic relocations with --dyn-relocations
2 ## even when there are no section headers.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readobj --dyn-relocations %t 2>&1 \
6 # RUN: | FileCheck %s -DFILE=%t --implicit-check-not="warning:" --check-prefix=LLVM-NO-SEC-TABLE
7 # RUN: llvm-readelf --dyn-relocations %t 2>&1 \
8 # RUN: | FileCheck %s -DFILE=%t --implicit-check-not="warning:" --check-prefix=GNU-NO-SEC-TABLE
10 # LLVM-NO-SEC-TABLE: Dynamic Relocations {
11 # LLVM-NO-SEC-TABLE-NEXT: 0x0 R_X86_64_NONE foo 0x0
12 # LLVM-NO-SEC-TABLE-NEXT: }
14 # GNU-NO-SEC-TABLE: 'RELA' relocation section at offset 0xb0 contains 24 bytes:
15 # GNU-NO-SEC-TABLE-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
16 # GNU-NO-SEC-TABLE-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000000000000 foo + 0
39 ## Offset of .dynsym is 0x138. Offset of PT_LOAD is 0xb0.
40 ## 0x138 - 0xb0 == 0x88
45 ## Offset of .dynstr is 0x168. Offset of PT_LOAD is 0xb0.
46 ## 0x168 - 0xb0 == 0xb8
53 - Type: SectionHeaderTable