summaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-10-22 21:00:10 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-10-22 21:00:10 +0000
commit984e3fc30a4b087a53fc057712ebb826d1d18f6d (patch)
treef0cbc1a4a4eb535f6f7b9348421858cf54b708a9 /bfd/elfxx-mips.c
parentc232814e2bd732d870dfb152ab2bab607b1e1ba0 (diff)
downloadbinutils-redhat-984e3fc30a4b087a53fc057712ebb826d1d18f6d.tar.gz
* elflink.h (struct elf_link_sort_rela): Turn rel and rela
into arrays. (elf_link_sort_cmp1, elf_link_sort_cmp2): Adjust. (elf_link_sort_relocs): Likewise. Take int_rels_per_ext_rel into account. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Compose R_MIPS_REL32 with R_MIPS64 if ABI_64_P.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index a179057058..ec0b54b001 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -2954,7 +2954,9 @@ mips_elf_create_dynamic_relocation (output_bfd, info, rel, h, sec,
outrel[0].r_info = ELF_R_INFO (output_bfd, (unsigned long) indx,
R_MIPS_REL32);
outrel[1].r_info = ELF_R_INFO (output_bfd, (unsigned long) 0,
- R_MIPS_NONE);
+ ABI_64_P (output_bfd)
+ ? R_MIPS_64
+ : R_MIPS_NONE);
outrel[2].r_info = ELF_R_INFO (output_bfd, (unsigned long) 0,
R_MIPS_NONE);