This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix problem with --emit-relocs for Mips-32.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c2fa9cedff58bfdb38cfb627b58fb34256f20369

commit c2fa9cedff58bfdb38cfb627b58fb34256f20369
Author: Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
Date:   Thu Mar 17 13:28:34 2016 -0700

    Fix problem with --emit-relocs for Mips-32.
    
    gold/
    	* mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
    	elf_r_info.

Diff:
---
 gold/ChangeLog | 5 +++++
 gold/mips.cc   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index d2b6433..1957df9 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-17  Vladimir Radosavljevic  <vladimir.radosavljevic@imgtec.com>
+
+	* mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
+	elf_r_info.
+
 2016-03-09  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* testsuite/plugin_layout_with_alignment.cc: Renamed to ..
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]