]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf.c
* config.bfd: Add powerpc64 target. Add powerpc64 vectors to
[thirdparty/binutils-gdb.git] / bfd / elf.c
index f8cc2ee1cf1fe4258dac4e4d20f4597257441b7f..4e6d6ef0299fb750220df1e3ae0117eb901e8626 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3393,7 +3393,10 @@ prep_headers (abfd)
       i_ehdrp->e_machine = EM_PARISC;
       break;
     case bfd_arch_powerpc:
-      i_ehdrp->e_machine = EM_PPC;
+      if (bed->s->arch_size == 64)
+       i_ehdrp->e_machine = EM_PPC64;
+      else
+       i_ehdrp->e_machine = EM_PPC;
       break;
     case bfd_arch_alpha:
       i_ehdrp->e_machine = EM_ALPHA;