1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
3 # RUN: obj2yaml %t | FileCheck %s --check-prefix=YAML
5 ## .rela.dyn is a dynamic relocation section that normally has
6 ## no value in sh_info field. Check we are able to use
7 ## yaml2obj/obj2yaml without needing to explicitly set it.
9 # CHECK: Name: .rela.dyn
10 # CHECK-NEXT: Type: SHT_RELA
12 # CHECK-NEXT: SHF_ALLOC
14 # CHECK-NEXT: Address:
19 # CHECK-NEXT: AddressAlignment:
20 # CHECK-NEXT: EntrySize:
22 # YAML: - Name: .rela.dyn
23 # YAML-NEXT: Type: SHT_RELA
24 # YAML-NEXT: Flags: [ SHF_ALLOC ]
25 # YAML-NEXT: Link: .dynsym
26 # YAML-NEXT: EntSize: 0x0000000000000018
34 Entry: 0x0000000000001000
40 EntSize: 0x0000000000000018
41 # Add at least one symbol to trigger the .dynsym emission.