gn build: Extract git() and git_out() functions in sync script
[llvm-complete.git] / test / Object / AArch64 / yaml2obj-elf-aarch64-rel.yaml
blobb8162bd3cd2a98319f2ec5d21381b770f2bb1a01
1 # RUN: yaml2obj %s > %t
2 # RUN: obj2yaml  %t | FileCheck %s
4 # CHECK:      - Name:            .rela.text
5 # CHECK-NEXT:   Type:            SHT_RELA
6 # CHECK-NEXT:    Link:            .symtab
7 # CHECK-NEXT:    AddressAlign:    0x0000000000000008
8 # CHECK-NEXT:    EntSize:         0x0000000000000018
9 # CHECK-NEXT:    Info:            .text
10 # CHECK-NEXT:    Relocations:     
11 # CHECK-NEXT:      - Offset:          0x0000000000000000
12 # CHECK-NEXT:        Symbol:          main
13 # CHECK-NEXT:        Type:            R_AARCH64_ABS64
14 # CHECK-NEXT:      - Offset:          0x0000000000000008
15 # CHECK-NEXT:        Symbol:          main
16 # CHECK-NEXT:        Type:            R_AARCH64_TLSGD_ADR_PREL21
18 !ELF
19 FileHeader:
20   Class:           ELFCLASS64
21   Data:            ELFDATA2LSB
22   Type:            ET_REL
23   Machine:         EM_AARCH64
24 Sections:
25   - Type:            SHT_PROGBITS
26     Name:            .text
27     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
28     AddressAlign:    0x04
29     Content:         00000000000000000000000000000000
30   - Type:            SHT_RELA
31     Name:            .rela.text
32     Link:            .symtab
33     Info:            .text
34     AddressAlign:    0x08
35     Relocations:
36       - Offset:          0
37         Symbol:          main
38         Type:            R_AARCH64_ABS64
39         Addend:          0
40       - Offset:          8
41         Symbol:          main
42         Type:            R_AARCH64_TLSGD_ADR_PREL21
43         Addend:          0
45 Symbols:
46   - Name:            .text
47     Type:            STT_SECTION
48     Section:         .text
49   - Name:            main
50     Type:            STT_FUNC
51     Section:         .text
52     Size:            0x08
53     Binding:         STB_GLOBAL