diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2002-10-22 21:00:10 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2002-10-22 21:00:10 +0000 |
commit | 033fd5f9ae6a7a915ee0f1263469f594d0dabb8d (patch) | |
tree | a83e7b2ba7e3b49ebc4f9f6a25cbe7c7aa43fcbf /bfd/elfxx-mips.c | |
parent | 1045b512db9224ba2b5b239336537b1141b46388 (diff) | |
download | gdb-033fd5f9ae6a7a915ee0f1263469f594d0dabb8d.zip gdb-033fd5f9ae6a7a915ee0f1263469f594d0dabb8d.tar.gz gdb-033fd5f9ae6a7a915ee0f1263469f594d0dabb8d.tar.bz2 |
* 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index a179057..ec0b54b 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); |