summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2000-11-14 23:56:38 +0000
committerJim Wilson <wilson@tuliptree.org>2000-11-14 23:56:38 +0000
commit72a76794c153394eadbc4d39c3e27e31d13e9c31 (patch)
treef914728c81b3d981c3069b3ae4e1e9b2960276d8
parent08e706b15a3650e649aa49023b8ac1976512520f (diff)
downloadbinutils-gdb-72a76794c153394eadbc4d39c3e27e31d13e9c31.tar.gz
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.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ia64.c16
2 files changed, 18 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index dfa6c7c61af..12a884f9520 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 11fb1c17674..2c13d68fd00 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -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";