]> git.pld-linux.org Git - packages/cross-binutils.git/blob - 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
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.073802 seconds and 3 git commands to generate.