This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] R_SPARC_GOTDATA_OP_LOX10 should fall back on GOT10 not GOT13
- From: James Clarke <jrtc27 at jrtc27 dot com>
- To: binutils at sourceware dot org
- Cc: James Clarke <jrtc27 at jrtc27 dot com>, Cary Coutant <ccoutant at gmail dot com>
- Date: Wed, 13 Jul 2016 20:05:06 +0100
- Subject: [PATCH] R_SPARC_GOTDATA_OP_LOX10 should fall back on GOT10 not GOT13
- Authentication-results: sourceware.org; auth=none
gold/
* sparc.cc (Target_sparc::Relocate::relocate): R_SPARC_GOTDATA_OP_LOX10
should fall back on R_SPARC_GOT10, not R_SPARC_GOT13.
---
gold/sparc.cc | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gold/sparc.cc b/gold/sparc.cc
index dc4612d..de16f4b 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -3468,6 +3468,13 @@ Target_sparc<size, big_endian>::Relocate::relocate(
Reloc::lo10(view, object, psymval, addend);
break;
+ case elfcpp::R_SPARC_GOTDATA_OP_LOX10:
+ if (gdop_valid)
+ {
+ Reloc::gdop_lox10(view, got_offset);
+ break;
+ }
+ /* Fall through. */
case elfcpp::R_SPARC_GOT10:
Reloc::lo10(view, got_offset, addend);
break;
@@ -3486,13 +3493,6 @@ Target_sparc<size, big_endian>::Relocate::relocate(
}
break;
- case elfcpp::R_SPARC_GOTDATA_OP_LOX10:
- if (gdop_valid)
- {
- Reloc::gdop_lox10(view, got_offset);
- break;
- }
- /* Fall through. */
case elfcpp::R_SPARC_GOT13:
Reloc::rela32_13(view, got_offset, addend);
break;
--
2.9.1