]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/ARM/rel-arm-prel31.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / ARM / rel-arm-prel31.test
1 # Check handling of R_ARM_PREL31 relocation.
2 # RUN: yaml2obj -format=elf %s > %t-o.o
3 # RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \
4 # RUN: --noinhibit-exec %t-o.o -o %t
5 # RUN: llvm-objdump -s -t %t | FileCheck %s
6
7 # CHECK: Contents of section .ARM.extab:
8 # CHECK: 4000a4 b1fffe7f
9 # CHECK: SYMBOL TABLE:
10 # CHECK: 00400054 g     F .text {{[0-9a-f]+}} __gxx_personality_v0
11
12 ---
13 FileHeader:
14   Class:           ELFCLASS32
15   Data:            ELFDATA2LSB
16   Type:            ET_REL
17   Machine:         EM_ARM
18   Flags:           [ EF_ARM_EABI_VER5 ]
19 Sections:
20   - Name:            .ARM.extab
21     Type:            SHT_PROGBITS
22     Flags:           [ SHF_ALLOC ]
23     AddressAlign:    0x4
24     Content:         0000FF7F84019701B0B0B008FFFF01080E2432003A040000
25   - Name:            .rel.ARM.extab
26     Type:            SHT_REL
27     Link:            .symtab
28     AddressAlign:    0x4
29     Info:            .ARM.extab
30     Relocations:
31       - Offset:          0
32         Symbol:          __gxx_personality_v0
33         Type:            R_ARM_PREL31
34   - Name:            .text
35     Type:            SHT_PROGBITS
36     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
37     AddressAlign:    0x4
38     Content:         80B400AF00231846BD465DF8047B704780B582B000AF3B1D1846FFF7FEFFFFF7FEFFFFF7FEFF0420FFF7FEFF0346184601230360002240F20001C0F20001FFF7FEFF3B1D1846FFF7FEFFFFF7FEFF00BF
39 Symbols:
40   Local:
41   Global:
42     - Name:            __gxx_personality_v0
43       Type:            STT_FUNC
44       Section:         .text
45       Value:           0x1
46 ...
47