diff options
author | Nick Clifton <nickc@redhat.com> | 2001-04-24 15:08:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-04-24 15:08:16 +0000 |
commit | b3baf5d0a8293b5f823c0d7848494507edb373fb (patch) | |
tree | a943d01ff94c368a3b62a8af9056968dd505a72c /bfd/elf32-mips.c | |
parent | db144853009a9877505330514aec4e26fc591d1d (diff) | |
download | gdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.zip gdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.tar.gz gdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.tar.bz2 |
Add OpenRISC support
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index b90178e..efbcbfa 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -209,8 +209,10 @@ static int sort_dynamic_relocs extern const bfd_target bfd_elf32_tradbigmips_vec; extern const bfd_target bfd_elf32_tradlittlemips_vec; +#ifdef BFD64 extern const bfd_target bfd_elf64_tradbigmips_vec; extern const bfd_target bfd_elf64_tradlittlemips_vec; +#endif /* The level of IRIX compatibility we're striving for. */ @@ -234,14 +236,19 @@ static bfd *reldyn_sorting_bfd; /* Depending on the target vector we generate some version of Irix executables or "normal" MIPS ELF ABI executables. */ - +#ifdef BFD64 #define IRIX_COMPAT(abfd) \ (((abfd->xvec == &bfd_elf64_tradbigmips_vec) || \ (abfd->xvec == &bfd_elf64_tradlittlemips_vec) || \ (abfd->xvec == &bfd_elf32_tradbigmips_vec) || \ (abfd->xvec == &bfd_elf32_tradlittlemips_vec)) ? ict_none : \ ((ABI_N32_P (abfd) || ABI_64_P (abfd)) ? ict_irix6 : ict_irix5)) - +#else +#define IRIX_COMPAT(abfd) \ + (((abfd->xvec == &bfd_elf32_tradbigmips_vec) || \ + (abfd->xvec == &bfd_elf32_tradlittlemips_vec)) ? ict_none : \ + ((ABI_N32_P (abfd) || ABI_64_P (abfd)) ? ict_irix6 : ict_irix5)) +#endif /* Whether we are trying to be compatible with IRIX at all. */ #define SGI_COMPAT(abfd) \ |