63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
# Check that two GOT entries containing R_ARM_JUMP_SLOT and
|
|
# R_ARM_GLOB_DAT may be present for the same symbol in the linked binary.
|
|
|
|
# RUN: yaml2obj -format=elf %s > %t-o.o
|
|
# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -shared \
|
|
# RUN: --noinhibit-exec %t-o.o -lfn -L%p/Inputs -o %t
|
|
# RUN: llvm-readobj -relocations %t | FileCheck %s
|
|
|
|
# CHECK: 0x401000 R_ARM_GLOB_DAT fn 0x0
|
|
# CHECK: 0x401010 R_ARM_JUMP_SLOT fn 0x0
|
|
|
|
---
|
|
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: 10482DE908B08DE20CD04DE230209FE502208FE02C309FE5033092E710300BE5FEFFFFEB0040A0E110301BE533FF2FE10030A0E1033084E00300A0E108D04BE21088BDE82C00000000000000
|
|
- Name: .rel.text
|
|
Type: SHT_REL
|
|
Link: .symtab
|
|
AddressAlign: 0x0000000000000004
|
|
Info: .text
|
|
Relocations:
|
|
- Offset: 0x0000000000000020
|
|
Symbol: fn
|
|
Type: R_ARM_CALL
|
|
- Offset: 0x0000000000000044
|
|
Symbol: _GLOBAL_OFFSET_TABLE_
|
|
Type: R_ARM_BASE_PREL
|
|
- Offset: 0x0000000000000048
|
|
Symbol: fn
|
|
Type: R_ARM_GOT_BREL
|
|
- Name: .data
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
AddressAlign: 0x0000000000000001
|
|
Content: ''
|
|
- Name: .bss
|
|
Type: SHT_NOBITS
|
|
Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
AddressAlign: 0x0000000000000001
|
|
Symbols:
|
|
Local:
|
|
- Name: '$a'
|
|
Section: .text
|
|
- Name: '$d'
|
|
Section: .text
|
|
Value: 0x0000000000000044
|
|
Global:
|
|
- Name: f
|
|
Type: STT_FUNC
|
|
Section: .text
|
|
- Name: fn
|
|
- Name: _GLOBAL_OFFSET_TABLE_
|
|
...
|