* elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
This commit is contained in:
parent
65844fe753
commit
9d46020e53
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-07-30 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
|
||||
|
||||
2002-07-26 Chris Demetriou <cgd@broadcom.com>
|
||||
|
||||
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
|
||||
|
|
|
@ -1187,6 +1187,19 @@ elfNN_ia64_final_write_processing (abfd, linker)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (! elf_flags_init (abfd))
|
||||
{
|
||||
unsigned long flags = 0;
|
||||
|
||||
if (abfd->xvec->byteorder == BFD_ENDIAN_BIG)
|
||||
flags |= EF_IA_64_BE;
|
||||
if (bfd_get_mach (abfd) == bfd_mach_ia64_elf64)
|
||||
flags |= EF_IA_64_ABI64;
|
||||
|
||||
elf_elfheader(abfd)->e_flags = flags;
|
||||
elf_flags_init (abfd) = true;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hook called by the linker routine which adds symbols from an object
|
||||
|
|
Loading…
Reference in a new issue