diff options
author | Jim Wilson <wilson@tuliptree.org> | 2000-11-14 23:56:38 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 2000-11-14 23:56:38 +0000 |
commit | 72a76794c153394eadbc4d39c3e27e31d13e9c31 (patch) | |
tree | f914728c81b3d981c3069b3ae4e1e9b2960276d8 /gas/config/tc-ia64.c | |
parent | 08e706b15a3650e649aa49023b8ac1976512520f (diff) | |
download | gdb-72a76794c153394eadbc4d39c3e27e31d13e9c31.zip gdb-72a76794c153394eadbc4d39c3e27e31d13e9c31.tar.gz gdb-72a76794c153394eadbc4d39c3e27e31d13e9c31.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r-- | gas/config/tc-ia64.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 11fb1c1..2c13d68 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"; |