aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-02-07 07:04:04 +0000
committerAlan Modra <amodra@gmail.com>2012-02-07 07:04:04 +0000
commitff9e0f5bc852249504bcec3d3d51ecd4a637a609 (patch)
treeab727d2862de1417969364e69259c55e911c3f40 /bfd/elf64-ppc.c
parent0d5cff5020224cfd67bc3d6e30b158105d03a324 (diff)
downloadgdb-ff9e0f5bc852249504bcec3d3d51ecd4a637a609.zip
gdb-ff9e0f5bc852249504bcec3d3d51ecd4a637a609.tar.gz
gdb-ff9e0f5bc852249504bcec3d3d51ecd4a637a609.tar.bz2
* elf.c (elf_find_function): Don't use internal_elf_sym.
(_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type parameter with asymbol. * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype. (struct elf_backend_data <maybe_function_sym>): Likewise.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index a51115e..fc779e6 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -5637,14 +5637,13 @@ opd_entry_value (asection *opd_sec,
and *CODE_OFF to the function's entry point. */
static bfd_boolean
-ppc64_elf_maybe_function_sym (const elf_symbol_type *sym,
+ppc64_elf_maybe_function_sym (const asymbol *sym,
asection **code_sec, bfd_vma *code_off)
{
if (_bfd_elf_maybe_function_sym (sym, code_sec, code_off))
{
- if (strcmp (sym->symbol.section->name, ".opd") == 0)
- opd_entry_value (sym->symbol.section, sym->symbol.value,
- code_sec, code_off);
+ if (strcmp (sym->section->name, ".opd") == 0)
+ opd_entry_value (sym->section, sym->value, code_sec, code_off);
return TRUE;
}
return FALSE;