aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-20 12:02:45 +0930
committerAlan Modra <amodra@gmail.com>2015-08-20 12:02:45 +0930
commit9215b98bb27c071386a277f5578dbb17569a1471 (patch)
tree62014c06b7d3255ba6b1833c41aa654a8c6056b6 /gold/ChangeLog
parent9d1f51209437ebee8f0a930b9613d59759ea8dc0 (diff)
downloadgdb-9215b98bb27c071386a277f5578dbb17569a1471.zip
gdb-9215b98bb27c071386a277f5578dbb17569a1471.tar.gz
gdb-9215b98bb27c071386a277f5578dbb17569a1471.tar.bz2
gold --emit-relocs
A symbol value in an ELF final linked binary is absolute, in contrast to a relocatable object file where the value is section relative. For --emit-relocs it is therefore incorrect to use the value of a section symbol as the addend when adjusting relocs against input section symbols to output section symbols. PR gold/18846 * target-reloc.h (relocate_relocs <RELOC_ADJUST_FOR_SECTION_RELA>): Subtract os->address() from addend. * powerpc.cc (relocate_relocs): Likewise.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 0c5a40c..b3417b2 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,10 @@
+2015-08-20 Alan Modra <amodra@gmail.com>
+
+ PR gold/18846
+ * target-reloc.h (relocate_relocs <RELOC_ADJUST_FOR_SECTION_RELA>):
+ Subtract os->address() from addend.
+ * powerpc.cc (relocate_relocs): Likewise.
+
2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
* mips.cc (plt0_entry_o32, plt0_entry_n32, plt0_entry_n64,