This is the mail archive of the binutils@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]

[PATCH] gold: Fix --emit-relocs for Mips32.


This patch fixes issue with --emit-relocs for Mips32.

Regards,
Vladimir.

ChangeLog -

    * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
    elf_r_info.
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]