Support ARM_V4BX relocation
Summary: This patch implementation the handler for ARM_V4BX. This relocation is used by GNU runtime files and other armv4 applications.
Patch by Yin Ma
Reviewers: espindola, MaskRay, ruiu, peter.smith, pcc
Reviewed By: ruiu
Subscribers: yinma, pcc, peter.smith, MaskRay, rovka, efriedma, emaste, javed.absar, arichardson, kristof.beyls, chrib, llvm-commits
Differential Revision: https://reviews.llvm.org/D53444
llvm-svn: 347077
2018-11-17 03:24:45 +08:00
|
|
|
# REQUIRES: arm
|
|
|
|
# RUN: yaml2obj %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t
|
|
|
|
# RUN: llvm-readelf -sections %t | FileCheck %s
|
2018-12-15 08:20:17 +08:00
|
|
|
# RUN: ld.lld -shared %t.o -o %t
|
|
|
|
# RUN: llvm-readelf -sections %t | FileCheck %s
|
Support ARM_V4BX relocation
Summary: This patch implementation the handler for ARM_V4BX. This relocation is used by GNU runtime files and other armv4 applications.
Patch by Yin Ma
Reviewers: espindola, MaskRay, ruiu, peter.smith, pcc
Reviewed By: ruiu
Subscribers: yinma, pcc, peter.smith, MaskRay, rovka, efriedma, emaste, javed.absar, arichardson, kristof.beyls, chrib, llvm-commits
Differential Revision: https://reviews.llvm.org/D53444
llvm-svn: 347077
2018-11-17 03:24:45 +08:00
|
|
|
|
|
|
|
# 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:
|
2020-03-04 21:55:15 +08:00
|
|
|
- Type: R_ARM_V4BX
|
Support ARM_V4BX relocation
Summary: This patch implementation the handler for ARM_V4BX. This relocation is used by GNU runtime files and other armv4 applications.
Patch by Yin Ma
Reviewers: espindola, MaskRay, ruiu, peter.smith, pcc
Reviewed By: ruiu
Subscribers: yinma, pcc, peter.smith, MaskRay, rovka, efriedma, emaste, javed.absar, arichardson, kristof.beyls, chrib, llvm-commits
Differential Revision: https://reviews.llvm.org/D53444
llvm-svn: 347077
2018-11-17 03:24:45 +08:00
|
|
|
Symbols:
|
2019-04-03 22:54:22 +08:00
|
|
|
- Name: .text
|
|
|
|
Type: STT_SECTION
|
|
|
|
Section: .text
|
|
|
|
- Name: _start
|
|
|
|
Section: .text
|
|
|
|
Binding: STB_GLOBAL
|