From: Ian Lance Taylor Date: Fri, 11 Apr 2008 20:44:52 +0000 (+0000) Subject: * testsuite/Makefile.am (justsyms_2r.o): Add dependency on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83bfb6b77648bdee37ca84fe240e8b0a229e8f77;p=binutils-gdb.git * testsuite/Makefile.am (justsyms_2r.o): Add dependency on justsyms.t. * testsuite/Makefile.in: Rebuild. * testsuite/script_test_2a.cc (script_test_string_a): Make 8 bytes long. * testsuite/script_test_2.cc (main): Adjust test. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 5916d05ae62..9bb3c20304c 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,13 @@ +2008-04-11 Ian Lance Taylor + + * testsuite/Makefile.am (justsyms_2r.o): Add dependency on + justsyms.t. + * testsuite/Makefile.in: Rebuild. + + * testsuite/script_test_2a.cc (script_test_string_a): Make 8 bytes + long. + * testsuite/script_test_2.cc (main): Adjust test. + 2008-04-11 David S. Miller Ian Lance Taylor @@ -11,8 +21,10 @@ * testsuite/justsyms.t: Start at 0x100. * testsuite/justsyms_1.cc: Adjust justsyms_string assertion. - * script_test_2b.cc (script_test_string_b): Make 8 bytes long. - * script_test_2.cc: Adjust string and section length checks. + * testsuite/script_test_2b.cc (script_test_string_b): Make 8 bytes + long. + * testsuite/script_test_2.cc: Adjust string and section length + checks. 2008-04-09 Ian Lance Taylor diff --git a/gold/Makefile.in b/gold/Makefile.in index 66e994a3e23..03f4c0d6dce 100644 --- a/gold/Makefile.in +++ b/gold/Makefile.in @@ -186,6 +186,7 @@ GCC_FALSE = @GCC_FALSE@ GCC_TRUE = @GCC_TRUE@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ +GREP = @GREP@ HAVE_ZLIB_FALSE = @HAVE_ZLIB_FALSE@ HAVE_ZLIB_TRUE = @HAVE_ZLIB_TRUE@ INCINTL = @INCINTL@ @@ -238,10 +239,9 @@ WARN_CFLAGS = @WARN_CFLAGS@ WARN_CXXFLAGS = @WARN_CXXFLAGS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ +YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ @@ -258,23 +258,30 @@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index a27166e8a3f..cec5412e8e4 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -664,7 +664,7 @@ justsyms_DEPENDENCIES = gcctestdir/ld justsyms_2r.o justsyms_LDFLAGS = -Bgcctestdir/ -Wl,-R,justsyms_2r.o justsyms_2.o: justsyms_2.cc $(CXXCOMPILE) -c -o $@ $< -justsyms_2r.o: justsyms_2.o gcctestdir/ld +justsyms_2r.o: justsyms_2.o gcctestdir/ld $(srcdir)/justsyms.t gcctestdir/ld -o $@ -r -T $(srcdir)/justsyms.t justsyms_2.o check_PROGRAMS += binary_test diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index 90f6d9e751d..0666360bd71 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -797,6 +797,7 @@ GCC_FALSE = @GCC_FALSE@ GCC_TRUE = @GCC_TRUE@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ +GREP = @GREP@ HAVE_ZLIB_FALSE = @HAVE_ZLIB_FALSE@ HAVE_ZLIB_TRUE = @HAVE_ZLIB_TRUE@ INCINTL = @INCINTL@ @@ -849,10 +850,9 @@ WARN_CFLAGS = @WARN_CFLAGS@ WARN_CXXFLAGS = @WARN_CXXFLAGS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ +YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ @@ -869,23 +869,30 @@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ @@ -1956,7 +1963,7 @@ uninstall-am: uninstall-info-am @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -s $< >$@ 2>/dev/null @GCC_TRUE@@NATIVE_LINKER_TRUE@justsyms_2.o: justsyms_2.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -o $@ $< -@GCC_TRUE@@NATIVE_LINKER_TRUE@justsyms_2r.o: justsyms_2.o gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@justsyms_2r.o: justsyms_2.o gcctestdir/ld $(srcdir)/justsyms.t @GCC_TRUE@@NATIVE_LINKER_TRUE@ gcctestdir/ld -o $@ -r -T $(srcdir)/justsyms.t justsyms_2.o # Copy the file to the build directory to avoid worrying about the # full pathname in the generated symbols. diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc index 6e7e000067a..9ba3aad74d2 100644 --- a/gold/testsuite/script_test_2.cc +++ b/gold/testsuite/script_test_2.cc @@ -51,7 +51,7 @@ main(int, char**) // Next the string from script_test_2a.o, after the subalign. for (int i = 16 + 7; i < 48; ++i) assert(start_test_area_1[i] == 0); - assert(strcmp(start_test_area_1 + 48, "test a") == 0); + assert(strcmp(start_test_area_1 + 48, "test aa") == 0); // Move four bytes forward to start_data. assert(reinterpret_cast(start_test_area_1 + 48 + 8 + 4) diff --git a/gold/testsuite/script_test_2a.cc b/gold/testsuite/script_test_2a.cc index f4a611cac77..6c665eb75be 100644 --- a/gold/testsuite/script_test_2a.cc +++ b/gold/testsuite/script_test_2a.cc @@ -21,4 +21,4 @@ // MA 02110-1301, USA. char script_test_string_a[] __attribute__ ((section(".gold_test"))) = - "test a"; + "test aa";