Blame SOURCES/binutils-2.20.51.0.10-copy-osabi.patch

8101c5
*** ../binutils-2.20.51.0.10.original/bfd/elf.c	2010-08-10 15:04:55.000000000 +0100
8101c5
--- bfd/elf.c	2010-08-10 15:05:42.000000000 +0100
8101c5
*************** _bfd_elf_copy_private_bfd_data (bfd *ibf
8101c5
*** 1074,1079 ****
8101c5
--- 1074,1087 ----
8101c5
  
8101c5
    /* Copy object attributes.  */
8101c5
    _bfd_elf_copy_obj_attributes (ibfd, obfd);
8101c5
+ 
8101c5
+   /* If the input BFD has the OSABI field set and the
8101c5
+      output BFD does not, then copy the value.  */
8101c5
+   if (elf_elfheader (ibfd)->e_ident [EI_OSABI] != ELFOSABI_NONE
8101c5
+       && elf_elfheader (obfd)->e_ident [EI_OSABI] == ELFOSABI_NONE)
8101c5
+     elf_elfheader (obfd)->e_ident [EI_OSABI] =
8101c5
+       elf_elfheader (ibfd)->e_ident [EI_OSABI];
8101c5
+ 
8101c5
    return TRUE;
8101c5
  }
8101c5