diff options
author | James Clarke <jrtc27@jrtc27.com> | 2017-11-08 15:13:53 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2017-11-08 15:13:53 -0800 |
commit | 333d0055f6f162c334c36f1946b6fcdb5c92b681 (patch) | |
tree | e2f634ea32928beaa5801afc966ea07f5e5520cc /gold/testsuite/Makefile.am | |
parent | 08228b11557016f6f12d537ebff5f169fdf9bc6c (diff) | |
download | gdb-333d0055f6f162c334c36f1946b6fcdb5c92b681.zip gdb-333d0055f6f162c334c36f1946b6fcdb5c92b681.tar.gz gdb-333d0055f6f162c334c36f1946b6fcdb5c92b681.tar.bz2 |
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.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r-- | gold/testsuite/Makefile.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index d9a0669..d8426db 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -3100,6 +3100,12 @@ exception_x86_64_bnd_2.o: exception_test_2.cc gcctestdir/as $(CXXCOMPILE) -c -Bgcctestdir/ -Wa,-madd-bnd-prefix -o $@ $< endif DEFAULT_TARGET_X86_64 +check_PROGRAMS += pr22266 +pr22266: pr22266_main.o pr22266_ar.o gcctestdir/ld + $(LINK) -Bgcctestdir/ pr22266_main.o pr22266_ar.o +pr22266_ar.o: pr22266_a.o gcctestdir/ld + gcctestdir/ld -r -T $(srcdir)/pr22266_script.t -o $@ pr22266_a.o + endif GCC endif NATIVE_LINKER |