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