1 *** ../binutils-2.20.51.0.10.original/bfd/elf.c 2010-08-10 15:04:55.000000000 +0100
2 --- bfd/elf.c 2010-08-10 15:05:42.000000000 +0100
3 *************** _bfd_elf_copy_private_bfd_data (bfd *ibf
7 /* Copy object attributes. */
8 _bfd_elf_copy_obj_attributes (ibfd, obfd);
10 + /* If the input BFD has the OSABI field set and the
11 + output BFD does not, then copy the value. */
12 + if (elf_elfheader (ibfd)->e_ident [EI_OSABI] != ELFOSABI_NONE
13 + && elf_elfheader (obfd)->e_ident [EI_OSABI] == ELFOSABI_NONE)
14 + elf_elfheader (obfd)->e_ident [EI_OSABI] =
15 + elf_elfheader (ibfd)->e_ident [EI_OSABI];