Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 11b68ce80f40c085106d3e3858050940 > files > 3

binutils-2.20.51.0.7-5.fc14.src.rpm

*** ../binutils-2.20.51.0.2.copy-patched/bfd/elf.c	2010-03-02 14:37:43.000000000 +0000
--- bfd/elf.c	2010-03-02 14:39:27.000000000 +0000
*************** _bfd_elf_copy_private_bfd_data (bfd *ibf
*** 1069,1074 ****
--- 1069,1081 ----
    /* Copy object attributes.  */
    _bfd_elf_copy_obj_attributes (ibfd, obfd);
  
+   /* If the input BFD has the OSABI field set and the
+      output BFD does not, then copy the value.  */
+   if (elf_elfheader (ibfd)->e_ident [EI_OSABI] != ELFOSABI_NONE
+       && elf_elfheader (obfd)->e_ident [EI_OSABI] == ELFOSABI_NONE)
+     elf_elfheader (obfd)->e_ident [EI_OSABI] =
+       elf_elfheader (ibfd)->e_ident [EI_OSABI];
+ 
    return TRUE;
  }