diff options
author | Ian Lance Taylor <ian@airs.com> | 2004-01-14 03:06:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2004-01-14 03:06:00 +0000 |
commit | 5e85cdd2b5af789edebdbdaf09c19641543ed660 (patch) | |
tree | acd92e2c39c39b9ef04ec14f2420a6f1eee170ce /bfd/elf64-mips.c | |
parent | 7f28473b268a2e85512f9c1bb0872db6b488fa89 (diff) | |
download | gdb-5e85cdd2b5af789edebdbdaf09c19641543ed660.tar.gz |
* elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
mips_elf64_rtype_to_howto instead of using howto_table.
* gas/mips/mips16-64.d: New test.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'bfd/elf64-mips.c')
-rw-r--r-- | bfd/elf64-mips.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c index 71c3425eaa8..fa3b494b998 100644 --- a/bfd/elf64-mips.c +++ b/bfd/elf64-mips.c @@ -2015,7 +2015,7 @@ mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect, arelent *relent; bfd_vma i; int entsize; - reloc_howto_type *howto_table; + bfd_boolean rela_p; allocated = bfd_malloc (rel_hdr->sh_size); if (allocated == NULL) @@ -2033,9 +2033,9 @@ mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect, || entsize == sizeof (Elf64_Mips_External_Rela)); if (entsize == sizeof (Elf64_Mips_External_Rel)) - howto_table = mips_elf64_howto_table_rel; + rela_p = FALSE; else - howto_table = mips_elf64_howto_table_rela; + rela_p = TRUE; for (i = 0, relent = relents; i < reloc_count; @@ -2148,7 +2148,7 @@ mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect, relent->addend = rela.r_addend; - relent->howto = &howto_table[(int) type]; + relent->howto = mips_elf64_rtype_to_howto (type, rela_p); ++relent; } |