aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-mips.c
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2001-10-03 14:12:12 +0000
committerThiemo Seufer <ths@networkno.de>2001-10-03 14:12:12 +0000
commit1e2be829b640424822efa52a8b94634d51ced5f4 (patch)
tree5e1ef06193439217263a062ef4bb96dd3fcfc283 /bfd/elf64-mips.c
parente150e7bf83597e5293f067aad7f5ac6edfa33466 (diff)
downloadgdb-1e2be829b640424822efa52a8b94634d51ced5f4.zip
gdb-1e2be829b640424822efa52a8b94634d51ced5f4.tar.gz
gdb-1e2be829b640424822efa52a8b94634d51ced5f4.tar.bz2
* elf64-mips.c (elf_backend_may_use_rela_p): New define.
(elf_backend_default_use_rela_p): New define.
Diffstat (limited to 'bfd/elf64-mips.c')
-rw-r--r--bfd/elf64-mips.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c
index 0b8638f..ffdfe53 100644
--- a/bfd/elf64-mips.c
+++ b/bfd/elf64-mips.c
@@ -2103,7 +2103,12 @@ const struct elf_size_info mips_elf64_size_info =
#define elf_backend_gc_sweep_hook _bfd_mips_elf_gc_sweep_hook
#define elf_backend_got_header_size (4*MIPS_RESERVED_GOTNO)
#define elf_backend_plt_header_size 0
-#define elf_backend_may_use_rel_p 1
+
+/* MIPS ELF64 can use a mixture of REL and RELA, but some Relocations
+ * work better/work only in RELA, so we default to this. */
+#define elf_backend_may_use_rel_p 1
+#define elf_backend_may_use_rela_p 1
+#define elf_backend_default_use_rela_p 1
/* We don't set bfd_elf64_bfd_is_local_label_name because the 32-bit
MIPS-specific function only applies to IRIX5, which had no 64-bit