mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[ELF] Prevent ARM ELF object writer from generating deprecated relocation code R_ARM_PLT32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9dda78ff11
commit
dc0b300304
@ -102,7 +102,7 @@ unsigned ARMELFObjectWriter::GetRelocTypeInner(const MCValue &Target,
|
||||
case ARM::fixup_arm_uncondbl:
|
||||
switch (Modifier) {
|
||||
case MCSymbolRefExpr::VK_PLT:
|
||||
Type = ELF::R_ARM_PLT32;
|
||||
Type = ELF::R_ARM_CALL;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_ARM_TLSCALL:
|
||||
Type = ELF::R_ARM_TLS_CALL;
|
||||
|
@ -19,8 +19,8 @@
|
||||
@ plt
|
||||
bl f04(PLT)
|
||||
bl f05(plt)
|
||||
@ARM: 10 R_ARM_PLT32 f04
|
||||
@ARM: 14 R_ARM_PLT32 f05
|
||||
@ARM: 10 R_ARM_CALL f04
|
||||
@ARM: 14 R_ARM_CALL f05
|
||||
@THUMB: 10 R_ARM_THM_CALL f04
|
||||
@THUMB: 14 R_ARM_THM_CALL f05
|
||||
|
||||
|
@ -261,7 +261,6 @@ ELF-ARM: Type: R_ARM_RELATIVE (23)
|
||||
ELF-ARM: Type: R_ARM_GOTOFF32 (24)
|
||||
ELF-ARM: Type: R_ARM_BASE_PREL (25)
|
||||
ELF-ARM: Type: R_ARM_GOT_BREL (26)
|
||||
ELF-ARM: Type: R_ARM_PLT32 (27)
|
||||
ELF-ARM: Type: R_ARM_CALL (28)
|
||||
ELF-ARM: Type: R_ARM_JUMP24 (29)
|
||||
ELF-ARM: Type: R_ARM_THM_JUMP24 (30)
|
||||
|
Loading…
Reference in New Issue
Block a user