From 39055108341fae0ca71ef503267d8f619e59a047 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Wed, 27 Oct 2004 20:48:22 +0000 Subject: [PATCH] 2004-10-27 Richard Earnshaw bfd/ * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24. (elf32_arm_final_link_relocate): Ditto. (arm_add_to_rel, elf32_arm_relocate_section): Ditto. (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto (elf32_arm_adjust_dynamic_symbol): Ditto. * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}... (elf32_arm_r_howto): ... To here. (elf32_arm_howto_from_type): Use elf32_arm_r_howto. include/ * elf/arm.h: Add R_ARM_CALL and R_ARM_JUMP32. --- include/ChangeLog | 4 ++++ include/elf/arm.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/ChangeLog b/include/ChangeLog index 24a803305..c5739c935 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2004-10-27 Richard Earnshaw + + * elf/arm.h: Add R_ARM_CALL and R_ARM_JUMP32. + 2004-10-27 Tomer Levi * opcode/crx.h (enum reg): Rearrange registers, remove 'ccfg' and `'pc'. diff --git a/include/elf/arm.h b/include/elf/arm.h index 9055f622d..edff571a7 100644 --- a/include/elf/arm.h +++ b/include/elf/arm.h @@ -123,7 +123,9 @@ START_RELOC_NUMBERS (elf_arm_reloc_type) FAKE_RELOC (FIRST_INVALID_RELOC, 28) FAKE_RELOC (LAST_INVALID_RELOC, 249) #else /* not OLD_ARM_ABI */ - FAKE_RELOC (FIRST_INVALID_RELOC1, 28) + RELOC_NUMBER (R_ARM_CALL, 28) + RELOC_NUMBER (R_ARM_JUMP24, 29) + FAKE_RELOC (FIRST_INVALID_RELOC1, 30) FAKE_RELOC (LAST_INVALID_RELOC1, 31) RELOC_NUMBER (R_ARM_ALU_PCREL7_0, 32) RELOC_NUMBER (R_ARM_ALU_PCREL15_8, 33)