]> git.ipfire.org Git - ipfire-3.x.git/blame - binutils/patches/binutils-2.20.51.0.10-copy-osabi.patch0
binutils: Update to 2.23.52.0.1
[ipfire-3.x.git] / binutils / patches / binutils-2.20.51.0.10-copy-osabi.patch0
CommitLineData
e5e21531
MT
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
4*** 1074,1079 ****
5--- 1074,1087 ----
6
7 /* Copy object attributes. */
8 _bfd_elf_copy_obj_attributes (ibfd, obfd);
9+
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];
16+
17 return TRUE;
18 }
19