diff options
author | Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> | 2016-03-17 13:28:34 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2016-03-17 14:26:50 -0700 |
commit | c2fa9cedff58bfdb38cfb627b58fb34256f20369 (patch) | |
tree | da0d19b3076c7fab242bb616efb887943db31419 /gold/mips.cc | |
parent | 708bf0a14b10d801a600759f3ef6d272978ae854 (diff) | |
download | gdb-c2fa9cedff58bfdb38cfb627b58fb34256f20369.zip gdb-c2fa9cedff58bfdb38cfb627b58fb34256f20369.tar.gz gdb-c2fa9cedff58bfdb38cfb627b58fb34256f20369.tar.bz2 |
Fix problem with --emit-relocs for Mips-32.
gold/
* mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
elf_r_info.
Diffstat (limited to 'gold/mips.cc')
-rw-r--r-- | gold/mips.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/mips.cc b/gold/mips.cc index 6f66fe9..895fd4c 100644 --- a/gold/mips.cc +++ b/gold/mips.cc @@ -2976,7 +2976,7 @@ class Mips_classify_reloc<sh_type_, 32, big_endian> : put_r_info(Reltype_write* new_reloc, Reltype* reloc, unsigned int r_sym) { unsigned int r_type = elfcpp::elf_r_type<32>(reloc->get_r_info()); - new_reloc->put_r_info(elfcpp::elf_r_info<64>(r_sym, r_type)); + new_reloc->put_r_info(elfcpp::elf_r_info<32>(r_sym, r_type)); } // Write the r_addend field to a new reloc. |