Extend earlier ia64-hpux patches to work correctly for ia64-linux.
authorJim Wilson <wilson@tuliptree.org>
Tue, 14 Nov 2000 23:56:38 +0000 (23:56 +0000)
committerJim Wilson <wilson@tuliptree.org>
Tue, 14 Nov 2000 23:56:38 +0000 (23:56 +0000)
* config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
return little endian bfd formats.

gas/ChangeLog
gas/config/tc-ia64.c

index dfa6c7c61af8b867f55a183f44af0a0a38703147..12a884f9520625c4d43dabb33ac7d9aeeaef08ab 100644 (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.
index 11fb1c176742f54ddd866d909f1f194031143b5f..2c13d68fd00876e3a3d4fa494f2536ee3a83268c 100644 (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";