git: binutils227: Backport binutils commit 333d0055f6f16
Antonio Huete Jimenez
tuxillo at crater.dragonflybsd.org
Tue Sep 15 16:42:20 PDT 2020
commit 131ec8c89584be411ba5568fa5780449f780e268
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date: Sun Sep 13 14:49:45 2020 +0000
binutils227: Backport binutils commit 333d0055f6f16
-------
Fix problems with -r.
The fix committed for PR gold/19291 ended up breaking other cases. The
commit added adjustment code to write_local_symbols, but in many cases
compute_final_local_value_internal had already subtracted the output
section's address. To fix this, all other adjustments are now removed, so
only the one in write_local_symbols is left.
gold/
PR gold/22266
* object.cc (Sized_relobj_file::compute_final_local_value_internal):
Drop relocatable parameter and stop adjusting output value based on
it.
(Sized_relobj_file::compute_final_local_value): Stop passing
relocatable to compute_final_local_value_internal.
(Sized_relobj_file::do_finalize_local_symbols): Ditto.
* object.h (Sized_relobj_file::compute_final_local_value_internal):
Drop relocatable parameter.
-------
Summary of changes:
contrib/binutils-2.27/gold/object.cc | 27 ++++++++-------------------
contrib/binutils-2.27/gold/object.h | 4 +---
2 files changed, 9 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/131ec8c89584be411ba5568fa5780449f780e268
--
DragonFly BSD source repository
More information about the Commits
mailing list