* elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
authorAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2005 03:59:52 +0000 (03:59 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2005 03:59:52 +0000 (03:59 +0000)
bfd/ChangeLog
bfd/elf64-ppc.c

index 1a41fa34444cad57c07de2a52c2fb60b5005721f..07fdf76fcd12d0fe64524bd03e1ff0fcb6e87b55 100644 (file)
@@ -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
index 65b9c2162b1fb1a30529001deca3941f3b26980d..b72c6bd143dfd4b70be8f647e1242f4b3a25d1df 100644 (file)
@@ -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)