diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-11 13:22:42 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-28 16:47:52 +0930 |
commit | ea8e302e12bd155a3acd79290ec87d7dda2cce61 (patch) | |
tree | e853d2a083965ab1b5895d1b5597883a4051fb0c /gold/ChangeLog | |
parent | cd5f43ff5db7b67009404aee4606eee603fb3f68 (diff) | |
download | gdb-ea8e302e12bd155a3acd79290ec87d7dda2cce61.zip gdb-ea8e302e12bd155a3acd79290ec87d7dda2cce61.tar.gz gdb-ea8e302e12bd155a3acd79290ec87d7dda2cce61.tar.bz2 |
PR16794, gold ignores R_386_GOTOFF addend
An R_386_GOTOFF relocation has an addend, typically used when a
symbol can be replaced by its section symbol plus an offset.
psymval->value(object,0) is quite wrong then, fix it.
PR 16794
* i386.cc (Target_i386::Relocate::relocate <R_386_GOTOFF>): Don't
ignore addend, apply using pcrel32.
* x86_64.cc (Target_x86_64::Relocate::relocate <R_X86_64_GOTOFF64>):
Similarly use pcrel64.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r-- | gold/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 964b7d7..c2acb20 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,11 @@ +2019-09-28 Alan Modra <amodra@gmail.com> + + PR 16794 + * i386.cc (Target_i386::Relocate::relocate <R_386_GOTOFF>): Don't + ignore addend, apply using pcrel32. + * x86_64.cc (Target_x86_64::Relocate::relocate <R_X86_64_GOTOFF64>): + Similarly use pcrel64. + 2019-09-24 Nick Clifton <nickc@redhat.com> * descriptors.cc: Include <string> |