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

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