aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2015-10-06 14:43:49 -0700
committerCary Coutant <ccoutant@gmail.com>2015-10-06 14:44:10 -0700
commit9eacb935acd69f6532135ec1353630db5111467c (patch)
tree5a40ad555d9ab1241c1e0c20884eda83b6f0feba /gold/ChangeLog
parent8c6da3dfbc65354975680bf7d8e273dbdca5de87 (diff)
downloadgdb-9eacb935acd69f6532135ec1353630db5111467c.zip
gdb-9eacb935acd69f6532135ec1353630db5111467c.tar.gz
gdb-9eacb935acd69f6532135ec1353630db5111467c.tar.bz2
Fix bug when applying R_SPARC_GOTDATA_OP* relocations to local symbols.
When applying a GOTDATA_OP* relocation to a local symbol, the addend is being applied after getting the value of the symbol. When the relocation refers to a merge section, however, the addend must be provided when computing the symbol value, since the contents of the section may have been rearranged. gold/ PR gold/18855 * sparc.cc (Sparc_relocate_functions::gdop_hix22): Remove addend parameter. (Sparc_relocate_functions::gdop_lox10): Likewise. (Target_sparc::Relocate::relocate): Use addend when computing symbol value for R_SPARC_GOTDATA_OP*.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 49ce2fe..180309e 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,12 @@
+2015-10-06 Cary Coutant <ccoutant@gmail.com>
+
+ PR gold/18855
+ * sparc.cc (Sparc_relocate_functions::gdop_hix22): Remove addend
+ parameter.
+ (Sparc_relocate_functions::gdop_lox10): Likewise.
+ (Target_sparc::Relocate::relocate): Use addend when computing
+ symbol value for R_SPARC_GOTDATA_OP*.
+
2015-09-07 Cary Coutant <ccoutant@gmail.com>
PR gold/18930