From: Alan Modra Date: Mon, 12 Dec 2005 03:59:52 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67f93c31bba30e1d53e9b51040b2a6a5b287f4dd;p=binutils-gdb.git * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1a41fa34444..07fdf76fcd1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-12-12 Alan Modra + + * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input. + 2005-12-10 Alan Modra * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 65b9c2162b1..b72c6bd143d 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)