Home | History | Annotate | Download | only in AArch64
      1 # RUN: yaml2obj -format=elf %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 FileHeader:
     18   Class:           ELFCLASS64
     19   Data:            ELFDATA2LSB
     20   Type:            ET_REL
     21   Machine:         EM_AARCH64
     22 Sections:
     23   - Type:            SHT_PROGBITS
     24     Name:            .text
     25     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
     26     AddressAlign:    0x04
     27     Content:         00000000000000000000000000000000
     28   - Type:            SHT_RELA
     29     Name:            .rela.text
     30     Link:            .symtab
     31     Info:            .text
     32     AddressAlign:    0x08
     33     Relocations:
     34       - Offset:          0
     35         Symbol:          main
     36         Type:            R_AARCH64_ABS64
     37         Addend:          0
     38       - Offset:          8
     39         Symbol:          main
     40         Type:            R_AARCH64_TLSGD_ADR_PREL21
     41         Addend:          0
     42 
     43 Symbols:
     44   Local:
     45     - Name:            .text
     46       Type:            STT_SECTION
     47       Section:         .text
     48 
     49   Global:
     50     - Name:            main
     51       Type:            STT_FUNC
     52       Section:         .text
     53       Size:            0x08
     54