[ELF] Prevent ARM ELF object writer from generating deprecated relocation code R_ARM_PLT32

llvm-svn: 222414
This commit is contained in:
Jyoti Allur 2014-11-20 05:58:11 +00:00
parent ccce9ae4c7
commit 5b9f35220e
3 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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)