mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
* elf32-arm.c (elf32_arm_relocate_section): Use
arm_real_reloc_type.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2004-11-15 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* elf32-arm.c (elf32_arm_relocate_section): Use
|
||||||
|
arm_real_reloc_type.
|
||||||
|
|
||||||
2004-11-16 Richard Sandiford <rsandifo@redhat.com>
|
2004-11-16 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
|
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
|
||||||
|
@ -3064,12 +3064,14 @@ elf32_arm_relocate_section (bfd * output_bfd,
|
|||||||
Elf_Internal_Rela *rel;
|
Elf_Internal_Rela *rel;
|
||||||
Elf_Internal_Rela *relend;
|
Elf_Internal_Rela *relend;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
struct elf32_arm_link_hash_table * globals;
|
||||||
|
|
||||||
#if !USE_REL
|
#if !USE_REL
|
||||||
if (info->relocatable)
|
if (info->relocatable)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
globals = elf32_arm_hash_table (info);
|
||||||
symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
|
symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
|
||||||
sym_hashes = elf_sym_hashes (input_bfd);
|
sym_hashes = elf_sym_hashes (input_bfd);
|
||||||
|
|
||||||
@ -3089,12 +3091,13 @@ elf32_arm_relocate_section (bfd * output_bfd,
|
|||||||
|
|
||||||
r_symndx = ELF32_R_SYM (rel->r_info);
|
r_symndx = ELF32_R_SYM (rel->r_info);
|
||||||
r_type = ELF32_R_TYPE (rel->r_info);
|
r_type = ELF32_R_TYPE (rel->r_info);
|
||||||
|
r_type = arm_real_reloc_type (globals, r_type);
|
||||||
|
|
||||||
if ( r_type == R_ARM_GNU_VTENTRY
|
if ( r_type == R_ARM_GNU_VTENTRY
|
||||||
|| r_type == R_ARM_GNU_VTINHERIT)
|
|| r_type == R_ARM_GNU_VTINHERIT)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
elf32_arm_info_to_howto (input_bfd, & bfd_reloc, rel);
|
bfd_reloc.howto = elf32_arm_howto_from_type (r_type);
|
||||||
howto = bfd_reloc.howto;
|
howto = bfd_reloc.howto;
|
||||||
|
|
||||||
#if USE_REL
|
#if USE_REL
|
||||||
|
Reference in New Issue
Block a user