aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-12-12 03:59:52 +0000
committerAlan Modra <amodra@gmail.com>2005-12-12 03:59:52 +0000
commit67f93c31bba30e1d53e9b51040b2a6a5b287f4dd (patch)
tree12cdb2634d1ece4d6601e909c02bfea0cbfe844a
parentdb3d81c9966825c503f620246c5725d5dd6e00c5 (diff)
downloadgdb-67f93c31bba30e1d53e9b51040b2a6a5b287f4dd.zip
gdb-67f93c31bba30e1d53e9b51040b2a6a5b287f4dd.tar.gz
gdb-67f93c31bba30e1d53e9b51040b2a6a5b287f4dd.tar.bz2
* elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf64-ppc.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1a41fa3..07fdf76 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-12 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
+
2005-12-10 Alan Modra <amodra@bigpond.net.au>
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 65b9c21..b72c6bd 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -8912,6 +8912,9 @@ ppc64_elf_size_stubs (bfd *output_bfd,
asection *section;
Elf_Internal_Sym *local_syms = NULL;
+ if (!is_ppc64_elf_target (input_bfd->xvec))
+ continue;
+
/* We'll need the symbol table in a second. */
symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
if (symtab_hdr->sh_info == 0)