e37b508
--- binutils-2.26.orig/bfd/elf.c	2016-01-25 10:11:33.482288877 +0000
e37b508
+++ binutils-2.26/bfd/elf.c	2016-01-25 10:16:48.520223863 +0000
e37b508
@@ -1300,6 +1300,13 @@ _bfd_elf_copy_private_bfd_data (bfd *ibf
e37b508
 	}
e37b508
     }
cb347a4
 
cb347a4
+  /* If the input BFD has the OSABI field set and the
cb347a4
+     output BFD does not, then copy the value.  */
cb347a4
+  if (elf_elfheader (ibfd)->e_ident [EI_OSABI] != ELFOSABI_NONE
cb347a4
+      && elf_elfheader (obfd)->e_ident [EI_OSABI] == ELFOSABI_NONE)
cb347a4
+    elf_elfheader (obfd)->e_ident [EI_OSABI] =
cb347a4
+      elf_elfheader (ibfd)->e_ident [EI_OSABI];
cb347a4
+
cb347a4
   return TRUE;
cb347a4
 }
cb347a4