]>
Commit | Line | Data |
---|---|---|
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 |