summaryrefslogtreecommitdiff
path: root/lld/test/ELF/arm-v4bx.test
blob: 1b39a431417bec3cd3fcf36bdfeba42ce2e9c438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# REQUIRES: arm
# RUN: yaml2obj %s -o %t.o
# RUN: ld.lld %t.o -o %t
# RUN: llvm-readelf -sections %t | FileCheck %s
# RUN: ld.lld -shared %t.o -o %t
# RUN: llvm-readelf -sections %t | FileCheck %s

# CHECK: .text

--- !ELF
FileHeader:
  Class:           ELFCLASS32
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_ARM
  Flags:           [ EF_ARM_EABI_VER5 ]
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    AddressAlign:    0x0000000000000004
    Content:         1EFF2F01
  - Name:            .rel.text
    Type:            SHT_REL
    Link:            .symtab
    AddressAlign:    0x0000000000000004
    Info:            .text
    Relocations:
      - Offset:          0x0000000000000000
        Symbol:          ''
        Type:            R_ARM_V4BX
Symbols:
  Global:
    - Name:            _start
      Section:         .text
  Local:
    - Name:            .text
      Type:            STT_SECTION
      Section:         .text
DynamicSymbols: