mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2010-02-08 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
|
||||
|
||||
2010-02-05 Sterling Augustine <sterling@tensilica.com>
|
||||
|
||||
* elf.c (assign_file_positions_for_load_sections) Update lma of
|
||||
|
@ -3447,7 +3447,6 @@ ppc_elf_check_relocs (bfd *abfd,
|
||||
enum elf_ppc_reloc_type r_type;
|
||||
struct elf_link_hash_entry *h;
|
||||
int tls_type;
|
||||
struct plt_entry **ifunc;
|
||||
|
||||
r_symndx = ELF32_R_SYM (rel->r_info);
|
||||
if (r_symndx < symtab_hdr->sh_info)
|
||||
@ -3475,16 +3474,8 @@ ppc_elf_check_relocs (bfd *abfd,
|
||||
}
|
||||
|
||||
tls_type = 0;
|
||||
ifunc = NULL;
|
||||
r_type = ELF32_R_TYPE (rel->r_info);
|
||||
if (!htab->is_vxworks)
|
||||
{
|
||||
if (h != NULL)
|
||||
{
|
||||
if (h->type == STT_GNU_IFUNC)
|
||||
ifunc = &h->plt.plist;
|
||||
}
|
||||
else
|
||||
if (h == NULL && !htab->is_vxworks)
|
||||
{
|
||||
Elf_Internal_Sym *isym = bfd_sym_from_r_symndx (&htab->sym_cache,
|
||||
abfd, r_symndx);
|
||||
@ -3495,6 +3486,7 @@ ppc_elf_check_relocs (bfd *abfd,
|
||||
&& (!info->shared
|
||||
|| is_branch_reloc (r_type)))
|
||||
{
|
||||
struct plt_entry **ifunc;
|
||||
bfd_vma addend;
|
||||
|
||||
ifunc = update_local_sym_info (abfd, symtab_hdr, r_symndx,
|
||||
@ -3516,7 +3508,6 @@ ppc_elf_check_relocs (bfd *abfd,
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!htab->is_vxworks
|
||||
&& is_branch_reloc (r_type)
|
||||
|
Reference in New Issue
Block a user