1# RUN: yaml2obj %s > %t 2# RUN: obj2yaml %t | FileCheck %s 3 4# CHECK: - Name: .rela.text 5# CHECK-NEXT: Type: SHT_RELA 6# CHECK-NEXT: Link: .symtab 7# CHECK-NEXT: AddressAlign: 0x0000000000000008 8# CHECK-NEXT: Info: .text 9# CHECK-NEXT: Relocations: 10# CHECK-NEXT: - Offset: 0x0000000000000000 11# CHECK-NEXT: Symbol: main 12# CHECK-NEXT: Type: R_AARCH64_ABS64 13# CHECK-NEXT: - Offset: 0x0000000000000008 14# CHECK-NEXT: Symbol: main 15# CHECK-NEXT: Type: R_AARCH64_TLSGD_ADR_PREL21 16 17!ELF 18FileHeader: 19 Class: ELFCLASS64 20 Data: ELFDATA2LSB 21 Type: ET_REL 22 Machine: EM_AARCH64 23Sections: 24 - Type: SHT_PROGBITS 25 Name: .text 26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 27 AddressAlign: 0x04 28 Content: 00000000000000000000000000000000 29 - Type: SHT_RELA 30 Name: .rela.text 31 Link: .symtab 32 Info: .text 33 AddressAlign: 0x08 34 Relocations: 35 - Offset: 0 36 Symbol: main 37 Type: R_AARCH64_ABS64 38 Addend: 0 39 - Offset: 8 40 Symbol: main 41 Type: R_AARCH64_TLSGD_ADR_PREL21 42 Addend: 0 43 44Symbols: 45 Local: 46 - Name: .text 47 Type: STT_SECTION 48 Section: .text 49 50 Global: 51 - Name: main 52 Type: STT_FUNC 53 Section: .text 54 Size: 0x08 55