mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Tidy ppc64_elf_hide_symbol
* elf64-ppc.c (ppc64_elf_hide_symbol): Access hash table as elf_link_hash_table rather than ppc_link_hash_table.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-12-03 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* elf64-ppc.c (ppc64_elf_hide_symbol): Access hash table as
|
||||||
|
elf_link_hash_table rather than ppc_link_hash_table.
|
||||||
|
|
||||||
2016-12-03 Alan Modra <amodra@gmail.com>
|
2016-12-03 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf64-ppc.c (add_symbol_adjust): Delete dead code.
|
* elf64-ppc.c (add_symbol_adjust): Delete dead code.
|
||||||
|
@ -7392,7 +7392,7 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
|
|||||||
if (fh == NULL)
|
if (fh == NULL)
|
||||||
{
|
{
|
||||||
const char *p, *q;
|
const char *p, *q;
|
||||||
struct ppc_link_hash_table *htab;
|
struct elf_link_hash_table *htab = elf_hash_table (info);
|
||||||
char save;
|
char save;
|
||||||
|
|
||||||
/* We aren't supposed to use alloca in BFD because on
|
/* We aren't supposed to use alloca in BFD because on
|
||||||
@ -7407,12 +7407,8 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
|
|||||||
p = eh->elf.root.root.string - 1;
|
p = eh->elf.root.root.string - 1;
|
||||||
save = *p;
|
save = *p;
|
||||||
*(char *) p = '.';
|
*(char *) p = '.';
|
||||||
htab = ppc_hash_table (info);
|
|
||||||
if (htab == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
fh = (struct ppc_link_hash_entry *)
|
fh = (struct ppc_link_hash_entry *)
|
||||||
elf_link_hash_lookup (&htab->elf, p, FALSE, FALSE, FALSE);
|
elf_link_hash_lookup (htab, p, FALSE, FALSE, FALSE);
|
||||||
*(char *) p = save;
|
*(char *) p = save;
|
||||||
|
|
||||||
/* Unfortunately, if it so happens that the string we were
|
/* Unfortunately, if it so happens that the string we were
|
||||||
@ -7426,7 +7422,7 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
|
|||||||
--q, --p;
|
--q, --p;
|
||||||
if (q < eh->elf.root.root.string && *p == '.')
|
if (q < eh->elf.root.root.string && *p == '.')
|
||||||
fh = (struct ppc_link_hash_entry *)
|
fh = (struct ppc_link_hash_entry *)
|
||||||
elf_link_hash_lookup (&htab->elf, p, FALSE, FALSE, FALSE);
|
elf_link_hash_lookup (htab, p, FALSE, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
if (fh != NULL)
|
if (fh != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user