diff options
author | Cary Coutant <ccoutant@google.com> | 2013-04-15 16:34:12 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2013-04-15 16:34:12 +0000 |
commit | 502e8a84302cfcc70166bd60cc6465a3e913cb8c (patch) | |
tree | 0602206c4e18bf6cab9f900cce1ed97f87fd61b9 /gold/testsuite/Makefile.am | |
parent | 4d40cad2035955599e42cb853b5d331eeefd6622 (diff) | |
download | fsf-binutils-gdb-502e8a84302cfcc70166bd60cc6465a3e913cb8c.zip fsf-binutils-gdb-502e8a84302cfcc70166bd60cc6465a3e913cb8c.tar.gz fsf-binutils-gdb-502e8a84302cfcc70166bd60cc6465a3e913cb8c.tar.bz2 |
gold/
* symtab.cc (Symbol_table::sized_write_globals): Subtract
section starting address for relocatable link.
* testsuite/Makefile.am (script_test_11): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/script_test_11.c: New source file.
* testsuite/script_test_11.t: New linker script.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r-- | gold/testsuite/Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 5b5c86b..4d02925 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -1398,7 +1398,6 @@ script_test_8: basic_test.o gcctestdir/ld $(srcdir)/script_test_7.t script_test_8.stdout: script_test_8 $(TEST_READELF) -SlW script_test_8 > script_test_8.stdout - check_SCRIPTS += script_test_9.sh check_DATA += script_test_9.stdout MOSTLYCLEANFILES += script_test_9 @@ -1409,6 +1408,16 @@ script_test_9: gcctestdir/ld $(srcdir)/script_test_9.t script_test_9.o script_test_9.stdout: script_test_9 $(TEST_READELF) -lW script_test_9 > script_test_9.stdout +# Test scripts with a relocatable link. +# The -g option is necessary to trigger a bug where a section +# declared in a script file is assigned a non-zero starting address. +check_PROGRAMS += script_test_11 +script_test_11: gcctestdir/ld script_test_11_r.o + $(LINK) -Bgcctestdir/ script_test_11_r.o +script_test_11_r.o: gcctestdir/ld $(srcdir)/script_test_11.t script_test_11.o + gcctestdir/ld -r -o $@ -T $(srcdir)/script_test_11.t script_test_11.o +script_test_11.o: script_test_11.c + $(COMPILE) -c -g -o $@ $< # Test --dynamic-list, --dynamic-list-data, --dynamic-list-cpp-new, # and --dynamic-list-cpp-typeinfo |