From 1b52ab15a37c749ca06101c37ae6efdc92319a5a Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 6 Aug 2004 16:18:11 +0000 Subject: [PATCH] bfd/ * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations. (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32. * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32. * bfd-in2.h, bbfd.h: Regenerate. gas/ * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc): Handle new relocations. * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations. gas/testsuite/ * gas/arm/pic.s,d: Test RELABS and SBREL relocations. --- include/elf/arm.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/elf/arm.h b/include/elf/arm.h index 158a4b55e..a391a0e68 100644 --- a/include/elf/arm.h +++ b/include/elf/arm.h @@ -124,10 +124,15 @@ START_RELOC_NUMBERS (elf_arm_reloc_type) RELOC_NUMBER (R_ARM_ALU_PCREL7_0, 32) RELOC_NUMBER (R_ARM_ALU_PCREL15_8, 33) RELOC_NUMBER (R_ARM_ALU_PCREL23_15, 34) - RELOC_NUMBER (R_ARM_LDR_SBREL11_0, 35) - RELOC_NUMBER (R_ARM_ALU_SBREL19_12, 36) - RELOC_NUMBER (R_ARM_ALU_SBREL27_20, 37) - FAKE_RELOC (FIRST_INVALID_RELOC2, 38) + RELOC_NUMBER (R_ARM_LDR_SBREL_11_0, 35) + RELOC_NUMBER (R_ARM_ALU_SBREL_19_12, 36) + RELOC_NUMBER (R_ARM_ALU_SBREL_27_20, 37) + RELOC_NUMBER (R_ARM_RELABS32, 38) + RELOC_NUMBER (R_ARM_ROSEGREL32, 39) + RELOC_NUMBER (R_ARM_V4BX, 40) + RELOC_NUMBER (R_ARM_STKCHK, 41) + RELOC_NUMBER (R_ARM_THM_STKCHK, 42) + FAKE_RELOC (FIRST_INVALID_RELOC2, 43) FAKE_RELOC (LAST_INVALID_RELOC2, 99) RELOC_NUMBER (R_ARM_GNU_VTENTRY, 100) RELOC_NUMBER (R_ARM_GNU_VTINHERIT, 101)