]> git.pld-linux.org Git - packages/cross-binutils.git/blame - binutils-2.20.51.0.10-copy-osabi.patch
fix symlinked packages files (ppc64)
[packages/cross-binutils.git] / binutils-2.20.51.0.10-copy-osabi.patch
CommitLineData
59e455fe
ER
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
3@@ -1074,6 +1074,14 @@
4
5 /* Copy object attributes. */
6 _bfd_elf_copy_obj_attributes (ibfd, obfd);
7+
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];
14+
15 return TRUE;
16 }
17
This page took 0.056741 seconds and 4 git commands to generate.