[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/16794] gold ignores R_386_GOTOFF addend
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gold/16794] gold ignores R_386_GOTOFF addend |
Date: |
Sat, 28 Sep 2019 07:19:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16794
--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea8e302e12bd155a3acd79290ec87d7dda2cce61
commit ea8e302e12bd155a3acd79290ec87d7dda2cce61
Author: Alan Modra <address@hidden>
Date: Wed Sep 11 13:22:42 2019 +0930
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.
--
You are receiving this mail because:
You are on the CC list for the bug.