Extend earlier ia64-hpux patches to work correctly for ia64-linux.

* config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
	return little endian bfd formats.
This commit is contained in:
Jim Wilson 2000-11-14 23:56:38 +00:00
parent 08e706b15a
commit 72a76794c1
2 changed files with 18 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2000-11-14 Jim Wilson <wilson@redhat.com>
* config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
return little endian bfd formats.
2000-11-14 Kazu Hirata <kazu@hxi.com>
* config/aout_gnu.h: Fix formatting.

View file

@ -6050,10 +6050,20 @@ ia64_target_format ()
{
if (OUTPUT_FLAVOR == bfd_target_elf_flavour)
{
if (md.flags & EF_IA_64_ABI64)
return "elf64-ia64-big";
if (md.flags & EF_IA_64_BE)
{
if (md.flags & EF_IA_64_ABI64)
return "elf64-ia64-big";
else
return "elf32-ia64-big";
}
else
return "elf32-ia64-big";
{
if (md.flags & EF_IA_64_ABI64)
return "elf64-ia64-little";
else
return "elf32-ia64-little";
}
}
else
return "unknown-format";