diff options
Diffstat (limited to 'binutils-2.25/gold/testsuite')
269 files changed, 1477 insertions, 301 deletions
diff --git a/binutils-2.25/gold/testsuite/Makefile.am b/binutils-2.25/gold/testsuite/Makefile.am index 0d40e3ff..35cd0139 100644 --- a/binutils-2.25/gold/testsuite/Makefile.am +++ b/binutils-2.25/gold/testsuite/Makefile.am @@ -19,18 +19,25 @@ AM_CPPFLAGS = \ -DLOCALEDIR="\"$(datadir)/locale\"" \ @INCINTL@ +# Some versions of GCC now automatically enable linker plugins, +# but we want to run our tests without GCC's plugins. +if HAVE_NO_USE_LINKER_PLUGIN +OPT_NO_PLUGINS = -fno-use-linker-plugin +endif + # COMPILE1, LINK1, CXXCOMPILE1, CXXLINK1 are renamed from COMPILE, LINK, # CXXCOMPILE and CXXLINK generated by automake 1.11.1. FIXME: they should # be updated if they are different from automake used by gold. COMPILE1 = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LINK1 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +LINK1 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(OPT_NO_PLUGINS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXCOMPILE1 = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLINK1 = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ +CXXLINK1 = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(OPT_NO_PLUGINS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ -# Strip out -Wp,-D_FORTIFY_SOURCE=, which is rrelevant for the gold +# Strip out -Wp,-D_FORTIFY_SOURCE=, which is irrelevant for the gold # testsuite and incompatible with -O0 used in gold tests, from # COMPILE, LINK, CXXCOMPILE and CXXLINK. COMPILE = `echo $(COMPILE1) | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9[0-9]]*//'` @@ -203,6 +210,16 @@ pr14265: pr14265.o pr14265.stdout: pr14265 $(TEST_NM) --format=bsd --numeric-sort $< > $@ +check_SCRIPTS += gc_dynamic_list_test.sh +check_DATA += gc_dynamic_list_test.stdout +MOSTLYCLEANFILES += gc_dynamic_list_test +gc_dynamic_list_test.o: gc_dynamic_list_test.c + $(COMPILE) -c -ffunction-sections -o $@ $< +gc_dynamic_list_test: gc_dynamic_list_test.o gcctestdir/ld $(srcdir)/gc_dynamic_list_test.t + $(LINK) -Bgcctestdir/ -Wl,--gc-sections -Wl,--dynamic-list,$(srcdir)/gc_dynamic_list_test.t gc_dynamic_list_test.o +gc_dynamic_list_test.stdout: gc_dynamic_list_test + $(TEST_NM) gc_dynamic_list_test > $@ + check_SCRIPTS += icf_test.sh check_DATA += icf_test.map MOSTLYCLEANFILES += icf_test icf_test.map @@ -500,6 +517,16 @@ two_file_pie_test: two_file_test_1_pie.o two_file_test_1b_pie.o \ two_file_test_2_pie.o two_file_test_main_pie.o gcctestdir/ld $(CXXLINK) -Bgcctestdir/ -pie two_file_test_1_pie.o two_file_test_1b_pie.o two_file_test_2_pie.o two_file_test_main_pie.o +check_PROGRAMS += pie_copyrelocs_test +pie_copyrelocs_test_SOURCES = pie_copyrelocs_test.cc +pie_copyrelocs_test_DEPENDENCIES = gcctestdir/ld pie_copyrelocs_shared_test.so +pie_copyrelocs_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,. -pie +pie_copyrelocs_test_LDADD = pie_copyrelocs_shared_test.so +pie_copyrelocs_shared_test.o: pie_copyrelocs_shared_test.cc + $(CXXCOMPILE) -O2 -fpic -c -o $@ $< +pie_copyrelocs_shared_test.so: pie_copyrelocs_shared_test.o gcctestdir/ld + $(CXXLINK) -Bgcctestdir/ -shared pie_copyrelocs_shared_test.o + check_SCRIPTS += two_file_shared.sh check_DATA += two_file_shared.dbg MOSTLYCLEANFILES += two_file_shared.dbg @@ -700,6 +727,18 @@ alt/weak_undef_lib.so: weak_undef_file2.o test -d alt || mkdir -p alt $(CXXLINK) -Bgcctestdir/ -shared weak_undef_file2.o +check_PROGRAMS += weak_undef_test_2 +weak_undef_test_2_SOURCES = weak_undef_test_2.cc +weak_undef_test_2_DEPENDENCIES = gcctestdir/ld libweak_undef_2.a +weak_undef_test_2_LDFLAGS = -Bgcctestdir/ -u weak_undef_2 +weak_undef_test_2_LDADD = -L . -lweak_undef_2 +libweak_undef_2.a: weak_undef_file3.o weak_undef_file4.o + $(TEST_AR) rc $@ $^ +weak_undef_file3.o: weak_undef_file3.cc + $(CXXCOMPILE) -c -o $@ $< +weak_undef_file4.o: weak_undef_file4.cc + $(CXXCOMPILE) -c -o $@ $< + if FN_PTRS_IN_SO_WITHOUT_PIC check_PROGRAMS += weak_undef_nonpic_test MOSTLYCLEANFILES += alt/weak_undef_lib_nonpic.so @@ -1465,6 +1504,22 @@ dynamic_list: basic_test.o gcctestdir/ld $(srcdir)/dynamic_list.t dynamic_list.stdout: dynamic_list $(TEST_READELF) -W --dyn-syms dynamic_list > dynamic_list.stdout +check_PROGRAMS += dynamic_list_2 +dynamic_list_2_SOURCES = dynamic_list_2.cc +dynamic_list_2_DEPENDENCIES = gcctestdir/ld dynamic_list_lib1.so dynamic_list_lib2.so +dynamic_list_2_LDFLAGS = -Bgcctestdir/ -L. -Wl,-R,. -Wl,--no-as-needed +dynamic_list_2_LDADD = dynamic_list_lib1.so dynamic_list_lib2.so + +dynamic_list_lib1.so: gcctestdir/ld dynamic_list_lib1.o + $(CXXLINK) -Bgcctestdir/ -shared dynamic_list_lib1.o +dynamic_list_lib1.o: dynamic_list_lib1.cc + $(CXXCOMPILE) -c -fpic -o $@ $< + +dynamic_list_lib2.so: gcctestdir/ld dynamic_list_lib2.o $(srcdir)/dynamic_list_2.t + $(CXXLINK) -Bgcctestdir/ -shared -Wl,--dynamic-list,$(srcdir)/dynamic_list_2.t dynamic_list_lib2.o +dynamic_list_lib2.o: dynamic_list_lib2.cc + $(CXXCOMPILE) -c -fpic -o $@ $< + check_PROGRAMS += thin_archive_test_1 MOSTLYCLEANFILES += libthin1.a libthin3.a libthinall.a \ alt/thin_archive_test_2.o alt/thin_archive_test_4.o \ @@ -1602,6 +1657,17 @@ MOSTLYCLEANFILES += two_file_test_1c.o two_file_test_1c.o: two_file_test_1.o cp two_file_test_1.o $@ +check_PROGRAMS += plugin_test_10 +check_SCRIPTS += plugin_test_10.sh +check_DATA += plugin_test_10.sections +MOSTLYCLEANFILES += plugin_test_10.sections +plugin_test_10: plugin_common_test_1.syms plugin_common_test_2.o gcctestdir/ld plugin_test.so + $(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so" plugin_common_test_1.syms plugin_common_test_2.o +plugin_test_10.sections: plugin_test_10 + $(TEST_READELF) -SW $< >$@ 2>/dev/null + + + plugin_test.so: plugin_test.o $(LINK) -Bgcctestdir/ -shared plugin_test.o plugin_test.o: plugin_test.c @@ -2154,6 +2220,61 @@ gdb_index_test_4.stdout: gdb_index_test_4 endif HAVE_PUBNAMES +# Test that __ehdr_start is defined correctly. +check_PROGRAMS += ehdr_start_test_1 +ehdr_start_test_1_SOURCES = ehdr_start_test.cc +ehdr_start_test_1_DEPENDENCIES = gcctestdir/ld +ehdr_start_test_1_CXXFLAGS = +ehdr_start_test_1_LDFLAGS = -Bgcctestdir/ +ehdr_start_test_1_LDADD = + +# Test that __ehdr_start is defined correctly with a weak reference. +check_PROGRAMS += ehdr_start_test_2 +ehdr_start_test_2_SOURCES = ehdr_start_test.cc +ehdr_start_test_2_DEPENDENCIES = gcctestdir/ld +ehdr_start_test_2_CXXFLAGS = -DEHDR_START_WEAK +ehdr_start_test_2_LDFLAGS = -Bgcctestdir/ +ehdr_start_test_2_LDADD = + +# Test that __ehdr_start is defined correctly when used with a linker script. +check_PROGRAMS += ehdr_start_test_3 +ehdr_start_test_3_SOURCES = ehdr_start_test.cc +ehdr_start_test_3_DEPENDENCIES = gcctestdir/ld $(srcdir)/ehdr_start_test.t +ehdr_start_test_3_CXXFLAGS = -DEHDR_START_WEAK +ehdr_start_test_3_LDFLAGS = -Bgcctestdir/ -Wl,-T,$(srcdir)/ehdr_start_test.t +ehdr_start_test_3_LDADD = + +# Test that __ehdr_start is left undefined when the text segment is not +# appropriately aligned. +check_SCRIPTS += ehdr_start_test_4.sh +check_DATA += ehdr_start_test_4.syms +MOSTLYCLEANFILES += ehdr_start_test_4 +ehdr_start_test_4.syms: ehdr_start_test_4 + $(TEST_NM) ehdr_start_test_4 > $@ +ehdr_start_test_4: ehdr_start_test_4.o gcctestdir/ld + $(CXXLINK) -Bgcctestdir/ -Wl,-Ttext=0x100100 $< +ehdr_start_test_4.o: ehdr_start_test.cc + $(CXXCOMPILE) -c -DEHDR_START_WEAK -o $@ $< + +# Test that __ehdr_start is not overridden when supplied by the user. +check_PROGRAMS += ehdr_start_test_5 +ehdr_start_test_5_SOURCES = ehdr_start_test.cc ehdr_start_def.cc +ehdr_start_test_5_DEPENDENCIES = gcctestdir/ld +ehdr_start_test_5_CXXFLAGS = -DEHDR_START_USER_DEF +ehdr_start_test_5_LDFLAGS = -Bgcctestdir/ +ehdr_start_test_5_LDADD = + +# Test that the --defsym option copies the symbol type and visibility. +check_SCRIPTS += defsym_test.sh +check_DATA += defsym_test.syms +MOSTLYCLEANFILES += defsym_test.syms +defsym_test.syms: defsym_test + $(TEST_READELF) -sW $< > $@ +defsym_test: defsym_test.o gcctestdir/ld + $(LINK) -Bgcctestdir/ -Wl,--defsym=bar=foo defsym_test.o +defsym_test.o: defsym_test.c + $(COMPILE) -c -o $@ $< + # End-to-end incremental linking tests. # Incremental linking is currently supported only on the x86_64 target. @@ -2256,6 +2377,18 @@ incremental_comdat_test_1: incr_comdat_test_1.o incr_comdat_test_2_v1.o incr_com endif DEFAULT_TARGET_X86_64 +if DEFAULT_TARGET_X86_64 +check_PROGRAMS += exception_x86_64_bnd_test +exception_x86_64_bnd_test_SOURCES = exception_test_main.cc +exception_x86_64_bnd_test_DEPENDENCIES = gcctestdir/ld exception_x86_64_bnd_1.o exception_x86_64_bnd_2.o +exception_x86_64_bnd_test_LDFLAGS = $(exception_test_LDFLAGS) +exception_x86_64_bnd_test_LDADD = exception_x86_64_bnd_1.o exception_x86_64_bnd_2.o +exception_x86_64_bnd_1.o: exception_test_1.cc gcctestdir/as + $(CXXCOMPILE) -c -fpic -Bgcctestdir/ -Wa,-madd-bnd-prefix -o $@ $< +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 + endif GCC endif NATIVE_LINKER diff --git a/binutils-2.25/gold/testsuite/Makefile.in b/binutils-2.25/gold/testsuite/Makefile.in index 07bb534a..8fbb6446 100644 --- a/binutils-2.25/gold/testsuite/Makefile.in +++ b/binutils-2.25/gold/testsuite/Makefile.in @@ -78,7 +78,9 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_2 = incremental_test.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_comdat_test.sh gc_tls_test.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_orphan_section_test.sh \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ pr14265.sh icf_test.sh \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ pr14265.sh \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_dynamic_list_test.sh \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_test.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_keep_unique_test.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_test.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_so_test.sh \ @@ -109,7 +111,9 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_comdat_test.stdout \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_tls_test.stdout \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_orphan_section_test.stdout \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ pr14265.stdout icf_test.map \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ pr14265.stdout \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_dynamic_list_test.stdout \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_test.map \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_keep_unique_test.stdout \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_test_1.stdout \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_test_2.stdout \ @@ -132,7 +136,8 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test.cmdline \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_comdat_test gc_tls_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_orphan_section_test pr14265 \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_test icf_test.map \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ gc_dynamic_list_test icf_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_test.map \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_keep_unique_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_test icf_safe_test.map \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ icf_safe_so_test \ @@ -176,7 +181,8 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_separate_shared_12_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_separate_shared_21_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_relocatable_test \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_pie_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_pie_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ pie_copyrelocs_test # The nonpic tests will fail on platforms which can not put non-PIC # code into shared libraries, so we just don't run them in that case. @@ -203,7 +209,8 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @NATIVE_LINKER_FALSE@exception_test_DEPENDENCIES = @GCC_TRUE@@HAVE_STATIC_TRUE@@NATIVE_LINKER_TRUE@am__append_14 = exception_static_test @GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_15 = weak_test \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test_2 @GCC_FALSE@weak_test_DEPENDENCIES = @NATIVE_LINKER_FALSE@weak_test_DEPENDENCIES = @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_16 = weak_undef_nonpic_test @@ -318,6 +325,7 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ script_test_3 \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ tls_phdrs_script_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ tls_script_test script_test_11 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ dynamic_list_2 \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ thin_archive_test_1 \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ thin_archive_test_2 @GCC_FALSE@script_test_1_DEPENDENCIES = @@ -342,14 +350,16 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_5 \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_6 \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7 \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_8 +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_8 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_10 @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@am__append_34 = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_1.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_2.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_3.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_4.sh \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_6.sh \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7.sh +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7.sh \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_10.sh # Test that symbols known in the IR file but not in the replacement file # produce an unresolved symbol error. @@ -361,7 +371,8 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_6.err \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7.err \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7.syms \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_9.err +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_9.err \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_10.sections # Make a copy of two_file_test_1.o, which does not define the symbol _Z4t16av. @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@am__append_36 = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_1.err \ @@ -372,7 +383,8 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_6.err \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7.err \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_9.err \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ two_file_test_1c.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ two_file_test_1c.o \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_10.sections @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@@TLS_TRUE@am__append_37 = plugin_test_tls @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@@TLS_TRUE@am__append_38 = plugin_test_tls.sh @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@@TLS_TRUE@am__append_39 = plugin_test_tls.err @@ -516,7 +528,19 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @NATIVE_LINKER_FALSE@ifuncmain7_DEPENDENCIES = # Test that --start-lib and --end-lib function correctly. -@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_60 = start_lib_test + +# Test that __ehdr_start is defined correctly. + +# Test that __ehdr_start is defined correctly with a weak reference. + +# Test that __ehdr_start is defined correctly when used with a linker script. + +# Test that __ehdr_start is not overridden when supplied by the user. +@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_60 = start_lib_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_1 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_2 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_3 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_5 # Test that --gdb-index functions correctly without gcc-generated pubnames. @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@am__append_61 = gdb_index_test_1.sh @@ -539,18 +563,38 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@ gdb_index_test_3 \ @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@ gdb_index_test_4.stdout \ @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@ gdb_index_test_4 +@GCC_FALSE@ehdr_start_test_1_DEPENDENCIES = +@NATIVE_LINKER_FALSE@ehdr_start_test_1_DEPENDENCIES = +@GCC_FALSE@ehdr_start_test_2_DEPENDENCIES = +@NATIVE_LINKER_FALSE@ehdr_start_test_2_DEPENDENCIES = +@GCC_FALSE@ehdr_start_test_3_DEPENDENCIES = +@NATIVE_LINKER_FALSE@ehdr_start_test_3_DEPENDENCIES = + +# Test that __ehdr_start is left undefined when the text segment is not +# appropriately aligned. + +# Test that the --defsym option copies the symbol type and visibility. +@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_70 = ehdr_start_test_4.sh \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ defsym_test.sh +@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_71 = ehdr_start_test_4.syms \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ defsym_test.syms +@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_72 = ehdr_start_test_4 \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ defsym_test.syms +@GCC_FALSE@ehdr_start_test_5_DEPENDENCIES = +@NATIVE_LINKER_FALSE@ehdr_start_test_5_DEPENDENCIES = # Test the --incremental-unchanged flag with an archive library. # The second link should not update the library. -@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_70 = incremental_test_2 \ +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_73 = incremental_test_2 \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_3 \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_4 \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_5 \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_6 \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_copy_test \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_common_test_1 \ -@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_comdat_test_1 -@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_71 = two_file_test_tmp_2.o \ +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_comdat_test_1 \ +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ exception_x86_64_bnd_test +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__append_74 = two_file_test_tmp_2.o \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_test_tmp_3.o \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_4.base \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_test_tmp_4.o \ @@ -560,23 +604,23 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ # These tests work with native and cross linkers. # Test script section order. -@NATIVE_OR_CROSS_LINKER_TRUE@am__append_72 = script_test_10.sh -@NATIVE_OR_CROSS_LINKER_TRUE@am__append_73 = script_test_10.stdout -@NATIVE_OR_CROSS_LINKER_TRUE@am__append_74 = script_test_10 +@NATIVE_OR_CROSS_LINKER_TRUE@am__append_75 = script_test_10.sh +@NATIVE_OR_CROSS_LINKER_TRUE@am__append_76 = script_test_10.stdout +@NATIVE_OR_CROSS_LINKER_TRUE@am__append_77 = script_test_10 # These tests work with cross linkers only. -@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_75 = split_i386.sh -@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_76 = split_i386_1.stdout split_i386_2.stdout \ +@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_78 = split_i386.sh +@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_79 = split_i386_1.stdout split_i386_2.stdout \ @DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ split_i386_3.stdout split_i386_4.stdout split_i386_r.stdout -@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_77 = split_i386_1 split_i386_2 split_i386_3 \ +@DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_80 = split_i386_1 split_i386_2 split_i386_3 \ @DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ split_i386_4 split_i386_r -@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_78 = split_x86_64.sh -@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_79 = split_x86_64_1.stdout split_x86_64_2.stdout \ +@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_81 = split_x86_64.sh +@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_82 = split_x86_64_1.stdout split_x86_64_2.stdout \ @DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ split_x86_64_3.stdout split_x86_64_4.stdout split_x86_64_r.stdout -@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_80 = split_x86_64_1 split_x86_64_2 split_x86_64_3 \ +@DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_83 = split_x86_64_1 split_x86_64_2 split_x86_64_3 \ @DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ split_x86_64_4 split_x86_64_r @@ -591,7 +635,7 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ # Check Thumb to Thumb farcall veneers # Check Thumb to ARM farcall veneers -@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_81 = arm_abs_global.sh \ +@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_84 = arm_abs_global.sh \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_branch_in_range.sh \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_branch_out_of_range.sh \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_fix_v4bx.sh \ @@ -605,7 +649,7 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_arm_thumb.sh \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_thumb.sh \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_arm.sh -@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_82 = arm_abs_global.stdout \ +@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_85 = arm_abs_global.stdout \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_bl_in_range.stdout \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_bl_out_of_range.stdout \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ thumb_bl_in_range.stdout \ @@ -650,7 +694,7 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_thumb_6m.stdout \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_arm.stdout \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_arm_5t.stdout -@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_83 = arm_abs_global \ +@DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@am__append_86 = arm_abs_global \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_bl_in_range \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_bl_out_of_range \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ thumb_bl_in_range \ @@ -693,10 +737,10 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_thumb_6m \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_arm \ @DEFAULT_TARGET_ARM_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@ arm_farcall_thumb_arm_5t -@DEFAULT_TARGET_X86_64_TRUE@am__append_84 = *.dwo *.dwp -@DEFAULT_TARGET_X86_64_TRUE@am__append_85 = dwp_test_1.sh \ +@DEFAULT_TARGET_X86_64_TRUE@am__append_87 = *.dwo *.dwp +@DEFAULT_TARGET_X86_64_TRUE@am__append_88 = dwp_test_1.sh \ @DEFAULT_TARGET_X86_64_TRUE@ dwp_test_2.sh -@DEFAULT_TARGET_X86_64_TRUE@am__append_86 = dwp_test_1.stdout \ +@DEFAULT_TARGET_X86_64_TRUE@am__append_89 = dwp_test_1.stdout \ @DEFAULT_TARGET_X86_64_TRUE@ dwp_test_2.stdout subdir = testsuite DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am @@ -748,7 +792,8 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_separate_shared_12_test$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_separate_shared_21_test$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_relocatable_test$(EXEEXT) \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_pie_test$(EXEEXT) +@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_pie_test$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ pie_copyrelocs_test$(EXEEXT) @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_9 = two_file_shared_1_nonpic_test$(EXEEXT) \ @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_shared_2_nonpic_test$(EXEEXT) \ @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_same_shared_nonpic_test$(EXEEXT) \ @@ -770,7 +815,8 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@NATIVE_LINKER_TRUE@ exception_separate_shared_21_test$(EXEEXT) @GCC_TRUE@@HAVE_STATIC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_11 = exception_static_test$(EXEEXT) @GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_12 = weak_test$(EXEEXT) \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test$(EXEEXT) +@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test_2$(EXEEXT) @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_13 = weak_undef_nonpic_test$(EXEEXT) @GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_14 = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_alias_test$(EXEEXT) \ @@ -822,6 +868,7 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@NATIVE_LINKER_TRUE@ tls_phdrs_script_test$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ tls_script_test$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ script_test_11$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ dynamic_list_2$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ thin_archive_test_1$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ thin_archive_test_2$(EXEEXT) @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@am__EXEEXT_23 = plugin_test_1$(EXEEXT) \ @@ -831,7 +878,8 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_5$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_6$(EXEEXT) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_7$(EXEEXT) \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_8$(EXEEXT) +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_8$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ plugin_test_10$(EXEEXT) @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@@TLS_TRUE@am__EXEEXT_24 = plugin_test_tls$(EXEEXT) @GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_25 = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ exclude_libs_test$(EXEEXT) \ @@ -877,7 +925,11 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ ifuncmain7pic$(EXEEXT) \ @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ ifuncmain7pie$(EXEEXT) \ @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ ifuncvar$(EXEEXT) -@GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_38 = start_lib_test$(EXEEXT) +@GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_38 = start_lib_test$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_1$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_2$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_3$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_5$(EXEEXT) @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_39 = incremental_test_2$(EXEEXT) \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_3$(EXEEXT) \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_4$(EXEEXT) \ @@ -885,7 +937,8 @@ libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_test_6$(EXEEXT) \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_copy_test$(EXEEXT) \ @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_common_test_1$(EXEEXT) \ -@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_comdat_test_1$(EXEEXT) +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ incremental_comdat_test_1$(EXEEXT) \ +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ exception_x86_64_bnd_test$(EXEEXT) basic_pic_test_SOURCES = basic_pic_test.c basic_pic_test_OBJECTS = basic_pic_test.$(OBJEXT) basic_pic_test_LDADD = $(LDADD) @@ -965,6 +1018,28 @@ discard_locals_test_DEPENDENCIES = libgoldtest.a ../libgold.a \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) discard_locals_test_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(discard_locals_test_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_dynamic_list_2_OBJECTS = \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ dynamic_list_2.$(OBJEXT) +dynamic_list_2_OBJECTS = $(am_dynamic_list_2_OBJECTS) +dynamic_list_2_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(dynamic_list_2_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ehdr_start_test_1_OBJECTS = ehdr_start_test_1-ehdr_start_test.$(OBJEXT) +ehdr_start_test_1_OBJECTS = $(am_ehdr_start_test_1_OBJECTS) +ehdr_start_test_1_LINK = $(CXXLD) $(ehdr_start_test_1_CXXFLAGS) \ + $(CXXFLAGS) $(ehdr_start_test_1_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ehdr_start_test_2_OBJECTS = ehdr_start_test_2-ehdr_start_test.$(OBJEXT) +ehdr_start_test_2_OBJECTS = $(am_ehdr_start_test_2_OBJECTS) +ehdr_start_test_2_LINK = $(CXXLD) $(ehdr_start_test_2_CXXFLAGS) \ + $(CXXFLAGS) $(ehdr_start_test_2_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ehdr_start_test_3_OBJECTS = ehdr_start_test_3-ehdr_start_test.$(OBJEXT) +ehdr_start_test_3_OBJECTS = $(am_ehdr_start_test_3_OBJECTS) +ehdr_start_test_3_LINK = $(CXXLD) $(ehdr_start_test_3_CXXFLAGS) \ + $(CXXFLAGS) $(ehdr_start_test_3_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ehdr_start_test_5_OBJECTS = ehdr_start_test_5-ehdr_start_test.$(OBJEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ ehdr_start_test_5-ehdr_start_def.$(OBJEXT) +ehdr_start_test_5_OBJECTS = $(am_ehdr_start_test_5_OBJECTS) +ehdr_start_test_5_LINK = $(CXXLD) $(ehdr_start_test_5_CXXFLAGS) \ + $(CXXFLAGS) $(ehdr_start_test_5_LDFLAGS) $(LDFLAGS) -o $@ @GCC_TRUE@@NATIVE_LINKER_TRUE@am_exception_same_shared_test_OBJECTS = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ exception_test_main.$(OBJEXT) exception_same_shared_test_OBJECTS = \ @@ -1014,6 +1089,11 @@ exception_static_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ exception_test_OBJECTS = $(am_exception_test_OBJECTS) exception_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(exception_test_LDFLAGS) $(LDFLAGS) -o $@ +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@am_exception_x86_64_bnd_test_OBJECTS = exception_test_main.$(OBJEXT) +exception_x86_64_bnd_test_OBJECTS = \ + $(am_exception_x86_64_bnd_test_OBJECTS) +exception_x86_64_bnd_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(exception_x86_64_bnd_test_LDFLAGS) $(LDFLAGS) -o $@ @GCC_TRUE@@NATIVE_LINKER_TRUE@am_exclude_libs_test_OBJECTS = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ exclude_libs_test.$(OBJEXT) exclude_libs_test_OBJECTS = $(am_exclude_libs_test_OBJECTS) @@ -1339,12 +1419,23 @@ permission_test_LDADD = $(LDADD) permission_test_DEPENDENCIES = libgoldtest.a ../libgold.a \ ../../libiberty/libiberty.a $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_pie_copyrelocs_test_OBJECTS = \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ pie_copyrelocs_test.$(OBJEXT) +pie_copyrelocs_test_OBJECTS = $(am_pie_copyrelocs_test_OBJECTS) +pie_copyrelocs_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(pie_copyrelocs_test_LDFLAGS) $(LDFLAGS) -o $@ plugin_test_1_SOURCES = plugin_test_1.c plugin_test_1_OBJECTS = plugin_test_1.$(OBJEXT) plugin_test_1_LDADD = $(LDADD) plugin_test_1_DEPENDENCIES = libgoldtest.a ../libgold.a \ ../../libiberty/libiberty.a $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) +plugin_test_10_SOURCES = plugin_test_10.c +plugin_test_10_OBJECTS = plugin_test_10.$(OBJEXT) +plugin_test_10_LDADD = $(LDADD) +plugin_test_10_DEPENDENCIES = libgoldtest.a ../libgold.a \ + ../../libiberty/libiberty.a $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) plugin_test_2_SOURCES = plugin_test_2.c plugin_test_2_OBJECTS = plugin_test_2.$(OBJEXT) plugin_test_2_LDADD = $(LDADD) @@ -1754,6 +1845,11 @@ weak_undef_nonpic_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ weak_undef_test_OBJECTS = $(am_weak_undef_test_OBJECTS) weak_undef_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(weak_undef_test_LDFLAGS) $(LDFLAGS) -o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_weak_undef_test_2_OBJECTS = \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ weak_undef_test_2.$(OBJEXT) +weak_undef_test_2_OBJECTS = $(am_weak_undef_test_2_OBJECTS) +weak_undef_test_2_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(weak_undef_test_2_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/../depcomp am__depfiles_maybe = depfiles @@ -1766,12 +1862,16 @@ SOURCES = $(libgoldtest_a_SOURCES) basic_pic_test.c basic_pie_test.c \ $(common_test_1_SOURCES) $(common_test_2_SOURCES) \ $(constructor_static_test_SOURCES) $(constructor_test_SOURCES) \ $(copy_test_SOURCES) $(discard_locals_test_SOURCES) \ + $(dynamic_list_2_SOURCES) $(ehdr_start_test_1_SOURCES) \ + $(ehdr_start_test_2_SOURCES) $(ehdr_start_test_3_SOURCES) \ + $(ehdr_start_test_5_SOURCES) \ $(exception_same_shared_test_SOURCES) \ $(exception_separate_shared_12_test_SOURCES) \ $(exception_separate_shared_21_test_SOURCES) \ $(exception_shared_1_test_SOURCES) \ $(exception_shared_2_test_SOURCES) \ $(exception_static_test_SOURCES) $(exception_test_SOURCES) \ + $(exception_x86_64_bnd_test_SOURCES) \ $(exclude_libs_test_SOURCES) \ flagstest_compress_debug_sections.c flagstest_o_specialfile.c \ flagstest_o_specialfile_and_compress_debug_sections.c \ @@ -1798,7 +1898,8 @@ SOURCES = $(libgoldtest_a_SOURCES) basic_pic_test.c basic_pie_test.c \ $(large_symbol_alignment_SOURCES) $(leb128_unittest_SOURCES) \ local_labels_test.c many_sections_r_test.c \ $(many_sections_test_SOURCES) $(object_unittest_SOURCES) \ - permission_test.c plugin_test_1.c plugin_test_2.c \ + permission_test.c $(pie_copyrelocs_test_SOURCES) \ + plugin_test_1.c plugin_test_10.c plugin_test_2.c \ plugin_test_3.c plugin_test_4.c plugin_test_5.c \ plugin_test_6.c plugin_test_7.c plugin_test_8.c \ plugin_test_tls.c $(protected_1_SOURCES) \ @@ -1839,7 +1940,8 @@ SOURCES = $(libgoldtest_a_SOURCES) basic_pic_test.c basic_pie_test.c \ $(ver_test_2_SOURCES) $(ver_test_6_SOURCES) \ $(ver_test_8_SOURCES) $(ver_test_9_SOURCES) \ $(weak_alias_test_SOURCES) weak_plt.c $(weak_test_SOURCES) \ - $(weak_undef_nonpic_test_SOURCES) $(weak_undef_test_SOURCES) + $(weak_undef_nonpic_test_SOURCES) $(weak_undef_test_SOURCES) \ + $(weak_undef_test_2_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ @@ -2067,21 +2169,27 @@ AM_CPPFLAGS = \ @INCINTL@ +# Some versions of GCC now automatically enable linker plugins, +# but we want to run our tests without GCC's plugins. +@HAVE_NO_USE_LINKER_PLUGIN_TRUE@OPT_NO_PLUGINS = -fno-use-linker-plugin + # COMPILE1, LINK1, CXXCOMPILE1, CXXLINK1 are renamed from COMPILE, LINK, # CXXCOMPILE and CXXLINK generated by automake 1.11.1. FIXME: they should # be updated if they are different from automake used by gold. COMPILE1 = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LINK1 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +LINK1 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(OPT_NO_PLUGINS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ + CXXCOMPILE1 = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLINK1 = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ +CXXLINK1 = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(OPT_NO_PLUGINS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ -# Strip out -Wp,-D_FORTIFY_SOURCE=, which is rrelevant for the gold +# Strip out -Wp,-D_FORTIFY_SOURCE=, which is irrelevant for the gold # testsuite and incompatible with -O0 used in gold tests, from # COMPILE, LINK, CXXCOMPILE and CXXLINK. COMPILE = `echo $(COMPILE1) | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9[0-9]]*//'` @@ -2114,23 +2222,24 @@ MOSTLYCLEANFILES = *.so *.syms *.stdout $(am__append_4) \ $(am__append_17) $(am__append_26) $(am__append_28) \ $(am__append_30) $(am__append_36) $(am__append_40) \ $(am__append_41) $(am__append_47) $(am__append_63) \ - $(am__append_66) $(am__append_69) $(am__append_71) \ + $(am__append_66) $(am__append_69) $(am__append_72) \ $(am__append_74) $(am__append_77) $(am__append_80) \ - $(am__append_83) $(am__append_84) + $(am__append_83) $(am__append_86) $(am__append_87) # We will add to these later, for each individual test. Note # that we add each test under check_SCRIPTS or check_PROGRAMS; # the TESTS variable is automatically populated from these. check_SCRIPTS = $(am__append_2) $(am__append_34) $(am__append_38) \ $(am__append_42) $(am__append_45) $(am__append_61) \ - $(am__append_64) $(am__append_67) $(am__append_72) \ + $(am__append_64) $(am__append_67) $(am__append_70) \ $(am__append_75) $(am__append_78) $(am__append_81) \ - $(am__append_85) + $(am__append_84) $(am__append_88) check_DATA = $(am__append_3) $(am__append_27) $(am__append_29) \ $(am__append_35) $(am__append_39) $(am__append_43) \ $(am__append_46) $(am__append_62) $(am__append_65) \ - $(am__append_68) $(am__append_73) $(am__append_76) \ - $(am__append_79) $(am__append_82) $(am__append_86) + $(am__append_68) $(am__append_71) $(am__append_76) \ + $(am__append_79) $(am__append_82) $(am__append_85) \ + $(am__append_89) BUILT_SOURCES = $(am__append_25) TESTS = $(check_SCRIPTS) $(check_PROGRAMS) @@ -2227,6 +2336,10 @@ LDADD = libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_relocatable_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,. @GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_relocatable_test_LDADD = two_file_relocatable.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_test_SOURCES = pie_copyrelocs_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_test_DEPENDENCIES = gcctestdir/ld pie_copyrelocs_shared_test.so +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,. -pie +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_test_LDADD = pie_copyrelocs_shared_test.so @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_shared_1_nonpic_test_SOURCES = \ @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_test_2.cc two_file_test_main.cc @@ -2340,6 +2453,10 @@ LDADD = libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_DEPENDENCIES = gcctestdir/ld weak_undef_lib.so alt/weak_undef_lib.so @GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,alt @GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_LDADD = -L . weak_undef_lib.so +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_2_SOURCES = weak_undef_test_2.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_2_DEPENDENCIES = gcctestdir/ld libweak_undef_2.a +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_2_LDFLAGS = -Bgcctestdir/ -u weak_undef_2 +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_test_2_LDADD = -L . -lweak_undef_2 @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_nonpic_test_SOURCES = weak_undef_test.cc @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_nonpic_test_DEPENDENCIES = gcctestdir/ld weak_undef_lib_nonpic.so alt/weak_undef_lib_nonpic.so @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_nonpic_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,alt @@ -2508,6 +2625,10 @@ LDADD = libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL) \ @GCC_TRUE@@NATIVE_LINKER_TRUE@tls_script_test_DEPENDENCIES = $(tls_test_DEPENDENCIES) $(srcdir)/script_test_4.t @GCC_TRUE@@NATIVE_LINKER_TRUE@tls_script_test_LDFLAGS = $(tls_test_LDFLAGS) -Wl,-T,$(srcdir)/script_test_4.t @GCC_TRUE@@NATIVE_LINKER_TRUE@tls_script_test_LDADD = $(tls_test_LDADD) +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_2_SOURCES = dynamic_list_2.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_2_DEPENDENCIES = gcctestdir/ld dynamic_list_lib1.so dynamic_list_lib2.so +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_2_LDFLAGS = -Bgcctestdir/ -L. -Wl,-R,. -Wl,--no-as-needed +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_2_LDADD = dynamic_list_lib1.so dynamic_list_lib2.so @GCC_TRUE@@NATIVE_LINKER_TRUE@thin_archive_test_1_SOURCES = thin_archive_main.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@thin_archive_test_1_DEPENDENCIES = gcctestdir/ld libthin1.a alt/libthin2.a @GCC_TRUE@@NATIVE_LINKER_TRUE@thin_archive_test_1_LDFLAGS = -Bgcctestdir/ -Lalt @@ -2590,6 +2711,30 @@ LDADD = libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL) \ @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ifuncvar_DEPENDENCIES = gcctestdir/ld ifuncvar.so @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ifuncvar_LDFLAGS = -Bgcctestdir/ -Wl,-R,. @GCC_TRUE@@IFUNC_TRUE@@NATIVE_LINKER_TRUE@ifuncvar_LDADD = ifuncvar.so +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_1_SOURCES = ehdr_start_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_1_DEPENDENCIES = gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_1_CXXFLAGS = +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_1_LDFLAGS = -Bgcctestdir/ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_1_LDADD = +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_2_SOURCES = ehdr_start_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_2_DEPENDENCIES = gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_2_CXXFLAGS = -DEHDR_START_WEAK +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_2_LDFLAGS = -Bgcctestdir/ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_2_LDADD = +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_3_SOURCES = ehdr_start_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_3_DEPENDENCIES = gcctestdir/ld $(srcdir)/ehdr_start_test.t +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_3_CXXFLAGS = -DEHDR_START_WEAK +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_3_LDFLAGS = -Bgcctestdir/ -Wl,-T,$(srcdir)/ehdr_start_test.t +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_3_LDADD = +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_5_SOURCES = ehdr_start_test.cc ehdr_start_def.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_5_DEPENDENCIES = gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_5_CXXFLAGS = -DEHDR_START_USER_DEF +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_5_LDFLAGS = -Bgcctestdir/ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_5_LDADD = +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_test_SOURCES = exception_test_main.cc +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_test_DEPENDENCIES = gcctestdir/ld exception_x86_64_bnd_1.o exception_x86_64_bnd_2.o +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_test_LDFLAGS = $(exception_test_LDFLAGS) +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_test_LDADD = exception_x86_64_bnd_1.o exception_x86_64_bnd_2.o @DEFAULT_TARGET_I386_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@SPLIT_DEFSYMS = --defsym __morestack=0x100 --defsym __morestack_non_split=0x200 @DEFAULT_TARGET_X86_64_TRUE@@NATIVE_OR_CROSS_LINKER_TRUE@SPLIT_DEFSYMS = --defsym __morestack=0x100 --defsym __morestack_non_split=0x200 all: $(BUILT_SOURCES) @@ -2697,6 +2842,21 @@ copy_test$(EXEEXT): $(copy_test_OBJECTS) $(copy_test_DEPENDENCIES) discard_locals_test$(EXEEXT): $(discard_locals_test_OBJECTS) $(discard_locals_test_DEPENDENCIES) @rm -f discard_locals_test$(EXEEXT) $(discard_locals_test_LINK) $(discard_locals_test_OBJECTS) $(discard_locals_test_LDADD) $(LIBS) +dynamic_list_2$(EXEEXT): $(dynamic_list_2_OBJECTS) $(dynamic_list_2_DEPENDENCIES) + @rm -f dynamic_list_2$(EXEEXT) + $(dynamic_list_2_LINK) $(dynamic_list_2_OBJECTS) $(dynamic_list_2_LDADD) $(LIBS) +ehdr_start_test_1$(EXEEXT): $(ehdr_start_test_1_OBJECTS) $(ehdr_start_test_1_DEPENDENCIES) + @rm -f ehdr_start_test_1$(EXEEXT) + $(ehdr_start_test_1_LINK) $(ehdr_start_test_1_OBJECTS) $(ehdr_start_test_1_LDADD) $(LIBS) +ehdr_start_test_2$(EXEEXT): $(ehdr_start_test_2_OBJECTS) $(ehdr_start_test_2_DEPENDENCIES) + @rm -f ehdr_start_test_2$(EXEEXT) + $(ehdr_start_test_2_LINK) $(ehdr_start_test_2_OBJECTS) $(ehdr_start_test_2_LDADD) $(LIBS) +ehdr_start_test_3$(EXEEXT): $(ehdr_start_test_3_OBJECTS) $(ehdr_start_test_3_DEPENDENCIES) + @rm -f ehdr_start_test_3$(EXEEXT) + $(ehdr_start_test_3_LINK) $(ehdr_start_test_3_OBJECTS) $(ehdr_start_test_3_LDADD) $(LIBS) +ehdr_start_test_5$(EXEEXT): $(ehdr_start_test_5_OBJECTS) $(ehdr_start_test_5_DEPENDENCIES) + @rm -f ehdr_start_test_5$(EXEEXT) + $(ehdr_start_test_5_LINK) $(ehdr_start_test_5_OBJECTS) $(ehdr_start_test_5_LDADD) $(LIBS) exception_same_shared_test$(EXEEXT): $(exception_same_shared_test_OBJECTS) $(exception_same_shared_test_DEPENDENCIES) @rm -f exception_same_shared_test$(EXEEXT) $(exception_same_shared_test_LINK) $(exception_same_shared_test_OBJECTS) $(exception_same_shared_test_LDADD) $(LIBS) @@ -2718,6 +2878,9 @@ exception_static_test$(EXEEXT): $(exception_static_test_OBJECTS) $(exception_sta exception_test$(EXEEXT): $(exception_test_OBJECTS) $(exception_test_DEPENDENCIES) @rm -f exception_test$(EXEEXT) $(exception_test_LINK) $(exception_test_OBJECTS) $(exception_test_LDADD) $(LIBS) +exception_x86_64_bnd_test$(EXEEXT): $(exception_x86_64_bnd_test_OBJECTS) $(exception_x86_64_bnd_test_DEPENDENCIES) + @rm -f exception_x86_64_bnd_test$(EXEEXT) + $(exception_x86_64_bnd_test_LINK) $(exception_x86_64_bnd_test_OBJECTS) $(exception_x86_64_bnd_test_LDADD) $(LIBS) exclude_libs_test$(EXEEXT): $(exclude_libs_test_OBJECTS) $(exclude_libs_test_DEPENDENCIES) @rm -f exclude_libs_test$(EXEEXT) $(exclude_libs_test_LINK) $(exclude_libs_test_OBJECTS) $(exclude_libs_test_LDADD) $(LIBS) @@ -3108,6 +3271,9 @@ object_unittest$(EXEEXT): $(object_unittest_OBJECTS) $(object_unittest_DEPENDENC @NATIVE_LINKER_FALSE@permission_test$(EXEEXT): $(permission_test_OBJECTS) $(permission_test_DEPENDENCIES) @NATIVE_LINKER_FALSE@ @rm -f permission_test$(EXEEXT) @NATIVE_LINKER_FALSE@ $(LINK) $(permission_test_OBJECTS) $(permission_test_LDADD) $(LIBS) +pie_copyrelocs_test$(EXEEXT): $(pie_copyrelocs_test_OBJECTS) $(pie_copyrelocs_test_DEPENDENCIES) + @rm -f pie_copyrelocs_test$(EXEEXT) + $(pie_copyrelocs_test_LINK) $(pie_copyrelocs_test_OBJECTS) $(pie_copyrelocs_test_LDADD) $(LIBS) @GCC_FALSE@plugin_test_1$(EXEEXT): $(plugin_test_1_OBJECTS) $(plugin_test_1_DEPENDENCIES) @GCC_FALSE@ @rm -f plugin_test_1$(EXEEXT) @GCC_FALSE@ $(LINK) $(plugin_test_1_OBJECTS) $(plugin_test_1_LDADD) $(LIBS) @@ -3117,6 +3283,15 @@ object_unittest$(EXEEXT): $(object_unittest_OBJECTS) $(object_unittest_DEPENDENC @PLUGINS_FALSE@plugin_test_1$(EXEEXT): $(plugin_test_1_OBJECTS) $(plugin_test_1_DEPENDENCIES) @PLUGINS_FALSE@ @rm -f plugin_test_1$(EXEEXT) @PLUGINS_FALSE@ $(LINK) $(plugin_test_1_OBJECTS) $(plugin_test_1_LDADD) $(LIBS) +@GCC_FALSE@plugin_test_10$(EXEEXT): $(plugin_test_10_OBJECTS) $(plugin_test_10_DEPENDENCIES) +@GCC_FALSE@ @rm -f plugin_test_10$(EXEEXT) +@GCC_FALSE@ $(LINK) $(plugin_test_10_OBJECTS) $(plugin_test_10_LDADD) $(LIBS) +@NATIVE_LINKER_FALSE@plugin_test_10$(EXEEXT): $(plugin_test_10_OBJECTS) $(plugin_test_10_DEPENDENCIES) +@NATIVE_LINKER_FALSE@ @rm -f plugin_test_10$(EXEEXT) +@NATIVE_LINKER_FALSE@ $(LINK) $(plugin_test_10_OBJECTS) $(plugin_test_10_LDADD) $(LIBS) +@PLUGINS_FALSE@plugin_test_10$(EXEEXT): $(plugin_test_10_OBJECTS) $(plugin_test_10_DEPENDENCIES) +@PLUGINS_FALSE@ @rm -f plugin_test_10$(EXEEXT) +@PLUGINS_FALSE@ $(LINK) $(plugin_test_10_OBJECTS) $(plugin_test_10_LDADD) $(LIBS) @GCC_FALSE@plugin_test_2$(EXEEXT): $(plugin_test_2_OBJECTS) $(plugin_test_2_DEPENDENCIES) @GCC_FALSE@ @rm -f plugin_test_2$(EXEEXT) @GCC_FALSE@ $(LINK) $(plugin_test_2_OBJECTS) $(plugin_test_2_LDADD) $(LIBS) @@ -3414,6 +3589,9 @@ weak_undef_nonpic_test$(EXEEXT): $(weak_undef_nonpic_test_OBJECTS) $(weak_undef_ weak_undef_test$(EXEEXT): $(weak_undef_test_OBJECTS) $(weak_undef_test_DEPENDENCIES) @rm -f weak_undef_test$(EXEEXT) $(weak_undef_test_LINK) $(weak_undef_test_OBJECTS) $(weak_undef_test_LDADD) $(LIBS) +weak_undef_test_2$(EXEEXT): $(weak_undef_test_2_OBJECTS) $(weak_undef_test_2_DEPENDENCIES) + @rm -f weak_undef_test_2$(EXEEXT) + $(weak_undef_test_2_LINK) $(weak_undef_test_2_OBJECTS) $(weak_undef_test_2_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -3432,6 +3610,12 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constructor_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/copy_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/discard_locals_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynamic_list_2.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception_test_1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception_test_2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception_test_main.Po@am__quote@ @@ -3489,7 +3673,9 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/many_sections_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object_unittest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/permission_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pie_copyrelocs_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin_test_1.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin_test_10.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin_test_2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin_test_3.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin_test_4.Po@am__quote@ @@ -3534,6 +3720,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weak_plt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weak_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weak_undef_test.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weak_undef_test_2.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -3577,6 +3764,76 @@ large-large.obj: large.c @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` +ehdr_start_test_1-ehdr_start_test.o: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_1_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_1-ehdr_start_test.o -MD -MP -MF $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Tpo -c -o ehdr_start_test_1-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_1-ehdr_start_test.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_1_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_1-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc + +ehdr_start_test_1-ehdr_start_test.obj: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_1_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_1-ehdr_start_test.obj -MD -MP -MF $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Tpo -c -o ehdr_start_test_1-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_1-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_1-ehdr_start_test.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_1_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_1-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` + +ehdr_start_test_2-ehdr_start_test.o: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_2_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_2-ehdr_start_test.o -MD -MP -MF $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Tpo -c -o ehdr_start_test_2-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_2-ehdr_start_test.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_2_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_2-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc + +ehdr_start_test_2-ehdr_start_test.obj: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_2_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_2-ehdr_start_test.obj -MD -MP -MF $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Tpo -c -o ehdr_start_test_2-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_2-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_2-ehdr_start_test.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_2_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_2-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` + +ehdr_start_test_3-ehdr_start_test.o: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_3_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_3-ehdr_start_test.o -MD -MP -MF $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Tpo -c -o ehdr_start_test_3-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_3-ehdr_start_test.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_3_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_3-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc + +ehdr_start_test_3-ehdr_start_test.obj: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_3_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_3-ehdr_start_test.obj -MD -MP -MF $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Tpo -c -o ehdr_start_test_3-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_3-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_3-ehdr_start_test.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_3_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_3-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` + +ehdr_start_test_5-ehdr_start_test.o: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_5-ehdr_start_test.o -MD -MP -MF $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Tpo -c -o ehdr_start_test_5-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_5-ehdr_start_test.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_5-ehdr_start_test.o `test -f 'ehdr_start_test.cc' || echo '$(srcdir)/'`ehdr_start_test.cc + +ehdr_start_test_5-ehdr_start_test.obj: ehdr_start_test.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_5-ehdr_start_test.obj -MD -MP -MF $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Tpo -c -o ehdr_start_test_5-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Tpo $(DEPDIR)/ehdr_start_test_5-ehdr_start_test.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_test.cc' object='ehdr_start_test_5-ehdr_start_test.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_5-ehdr_start_test.obj `if test -f 'ehdr_start_test.cc'; then $(CYGPATH_W) 'ehdr_start_test.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_test.cc'; fi` + +ehdr_start_test_5-ehdr_start_def.o: ehdr_start_def.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_5-ehdr_start_def.o -MD -MP -MF $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Tpo -c -o ehdr_start_test_5-ehdr_start_def.o `test -f 'ehdr_start_def.cc' || echo '$(srcdir)/'`ehdr_start_def.cc +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Tpo $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_def.cc' object='ehdr_start_test_5-ehdr_start_def.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_5-ehdr_start_def.o `test -f 'ehdr_start_def.cc' || echo '$(srcdir)/'`ehdr_start_def.cc + +ehdr_start_test_5-ehdr_start_def.obj: ehdr_start_def.cc +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -MT ehdr_start_test_5-ehdr_start_def.obj -MD -MP -MF $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Tpo -c -o ehdr_start_test_5-ehdr_start_def.obj `if test -f 'ehdr_start_def.cc'; then $(CYGPATH_W) 'ehdr_start_def.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_def.cc'; fi` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Tpo $(DEPDIR)/ehdr_start_test_5-ehdr_start_def.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ehdr_start_def.cc' object='ehdr_start_test_5-ehdr_start_def.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ehdr_start_test_5_CXXFLAGS) $(CXXFLAGS) -c -o ehdr_start_test_5-ehdr_start_def.obj `if test -f 'ehdr_start_def.cc'; then $(CYGPATH_W) 'ehdr_start_def.cc'; else $(CYGPATH_W) '$(srcdir)/ehdr_start_def.cc'; fi` + ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -3791,6 +4048,8 @@ gc_orphan_section_test.sh.log: gc_orphan_section_test.sh @p='gc_orphan_section_test.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) pr14265.sh.log: pr14265.sh @p='pr14265.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +gc_dynamic_list_test.sh.log: gc_dynamic_list_test.sh + @p='gc_dynamic_list_test.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) icf_test.sh.log: icf_test.sh @p='icf_test.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) icf_keep_unique_test.sh.log: icf_keep_unique_test.sh @@ -3867,6 +4126,8 @@ plugin_test_6.sh.log: plugin_test_6.sh @p='plugin_test_6.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) plugin_test_7.sh.log: plugin_test_7.sh @p='plugin_test_7.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +plugin_test_10.sh.log: plugin_test_10.sh + @p='plugin_test_10.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) plugin_test_tls.sh.log: plugin_test_tls.sh @p='plugin_test_tls.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) plugin_final_layout.sh.log: plugin_final_layout.sh @@ -3895,6 +4156,10 @@ gdb_index_test_3.sh.log: gdb_index_test_3.sh @p='gdb_index_test_3.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) gdb_index_test_4.sh.log: gdb_index_test_4.sh @p='gdb_index_test_4.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +ehdr_start_test_4.sh.log: ehdr_start_test_4.sh + @p='ehdr_start_test_4.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +defsym_test.sh.log: defsym_test.sh + @p='defsym_test.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) script_test_10.sh.log: script_test_10.sh @p='script_test_10.sh'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) split_i386.sh.log: split_i386.sh @@ -3981,6 +4246,8 @@ two_file_relocatable_test.log: two_file_relocatable_test$(EXEEXT) @p='two_file_relocatable_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) two_file_pie_test.log: two_file_pie_test$(EXEEXT) @p='two_file_pie_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +pie_copyrelocs_test.log: pie_copyrelocs_test$(EXEEXT) + @p='pie_copyrelocs_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) two_file_shared_1_nonpic_test.log: two_file_shared_1_nonpic_test$(EXEEXT) @p='two_file_shared_1_nonpic_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) two_file_shared_2_nonpic_test.log: two_file_shared_2_nonpic_test$(EXEEXT) @@ -4023,6 +4290,8 @@ weak_test.log: weak_test$(EXEEXT) @p='weak_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) weak_undef_test.log: weak_undef_test$(EXEEXT) @p='weak_undef_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +weak_undef_test_2.log: weak_undef_test_2$(EXEEXT) + @p='weak_undef_test_2$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) weak_undef_nonpic_test.log: weak_undef_nonpic_test$(EXEEXT) @p='weak_undef_nonpic_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) weak_alias_test.log: weak_alias_test$(EXEEXT) @@ -4117,6 +4386,8 @@ tls_script_test.log: tls_script_test$(EXEEXT) @p='tls_script_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) script_test_11.log: script_test_11$(EXEEXT) @p='script_test_11$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +dynamic_list_2.log: dynamic_list_2$(EXEEXT) + @p='dynamic_list_2$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) thin_archive_test_1.log: thin_archive_test_1$(EXEEXT) @p='thin_archive_test_1$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) thin_archive_test_2.log: thin_archive_test_2$(EXEEXT) @@ -4137,6 +4408,8 @@ plugin_test_7.log: plugin_test_7$(EXEEXT) @p='plugin_test_7$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) plugin_test_8.log: plugin_test_8$(EXEEXT) @p='plugin_test_8$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +plugin_test_10.log: plugin_test_10$(EXEEXT) + @p='plugin_test_10$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) plugin_test_tls.log: plugin_test_tls$(EXEEXT) @p='plugin_test_tls$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) exclude_libs_test.log: exclude_libs_test$(EXEEXT) @@ -4215,6 +4488,14 @@ ifuncvar.log: ifuncvar$(EXEEXT) @p='ifuncvar$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) start_lib_test.log: start_lib_test$(EXEEXT) @p='start_lib_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +ehdr_start_test_1.log: ehdr_start_test_1$(EXEEXT) + @p='ehdr_start_test_1$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +ehdr_start_test_2.log: ehdr_start_test_2$(EXEEXT) + @p='ehdr_start_test_2$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +ehdr_start_test_3.log: ehdr_start_test_3$(EXEEXT) + @p='ehdr_start_test_3$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +ehdr_start_test_5.log: ehdr_start_test_5$(EXEEXT) + @p='ehdr_start_test_5$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) incremental_test_2.log: incremental_test_2$(EXEEXT) @p='incremental_test_2$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) incremental_test_3.log: incremental_test_3$(EXEEXT) @@ -4231,6 +4512,8 @@ incremental_common_test_1.log: incremental_common_test_1$(EXEEXT) @p='incremental_common_test_1$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) incremental_comdat_test_1.log: incremental_comdat_test_1$(EXEEXT) @p='incremental_comdat_test_1$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) +exception_x86_64_bnd_test.log: exception_x86_64_bnd_test$(EXEEXT) + @p='exception_x86_64_bnd_test$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post) .test.log: @p='$<'; $(am__check_pre) $(TEST_LOG_COMPILE) "$$tst" $(am__check_post) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @@ -4432,6 +4715,12 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) -Bgcctestdir/ -Wl,--gc-sections -Wl,-T,$(srcdir)/pr14265.t -o $@ $< @GCC_TRUE@@NATIVE_LINKER_TRUE@pr14265.stdout: pr14265 @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_NM) --format=bsd --numeric-sort $< > $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@gc_dynamic_list_test.o: gc_dynamic_list_test.c +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(COMPILE) -c -ffunction-sections -o $@ $< +@GCC_TRUE@@NATIVE_LINKER_TRUE@gc_dynamic_list_test: gc_dynamic_list_test.o gcctestdir/ld $(srcdir)/gc_dynamic_list_test.t +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) -Bgcctestdir/ -Wl,--gc-sections -Wl,--dynamic-list,$(srcdir)/gc_dynamic_list_test.t gc_dynamic_list_test.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@gc_dynamic_list_test.stdout: gc_dynamic_list_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_NM) gc_dynamic_list_test > $@ @GCC_TRUE@@NATIVE_LINKER_TRUE@icf_test.o: icf_test.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -c -ffunction-sections -g -o $@ $< @GCC_TRUE@@NATIVE_LINKER_TRUE@icf_test: icf_test.o gcctestdir/ld @@ -4564,6 +4853,10 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_pie_test: two_file_test_1_pie.o two_file_test_1b_pie.o \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ two_file_test_2_pie.o two_file_test_main_pie.o gcctestdir/ld @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -pie two_file_test_1_pie.o two_file_test_1b_pie.o two_file_test_2_pie.o two_file_test_main_pie.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_shared_test.o: pie_copyrelocs_shared_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O2 -fpic -c -o $@ $< +@GCC_TRUE@@NATIVE_LINKER_TRUE@pie_copyrelocs_shared_test.so: pie_copyrelocs_shared_test.o gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -shared pie_copyrelocs_shared_test.o @GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_shared.dbg: two_file_shared.so @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -w $< >$@ 2>/dev/null @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@two_file_shared_1_nonpic.so: two_file_test_1.o gcctestdir/ld @@ -4610,6 +4903,12 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@alt/weak_undef_lib.so: weak_undef_file2.o @GCC_TRUE@@NATIVE_LINKER_TRUE@ test -d alt || mkdir -p alt @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -shared weak_undef_file2.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@libweak_undef_2.a: weak_undef_file3.o weak_undef_file4.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_AR) rc $@ $^ +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_file3.o: weak_undef_file3.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -o $@ $< +@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_file4.o: weak_undef_file4.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -o $@ $< @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_file1_nonpic.o: weak_undef_file1.cc @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -o $@ $< @FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@weak_undef_file2_nonpic.o: weak_undef_file2.cc @@ -4961,6 +5260,16 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list.stdout: dynamic_list @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -W --dyn-syms dynamic_list > dynamic_list.stdout +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_lib1.so: gcctestdir/ld dynamic_list_lib1.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -shared dynamic_list_lib1.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_lib1.o: dynamic_list_lib1.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -fpic -o $@ $< + +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_lib2.so: gcctestdir/ld dynamic_list_lib2.o $(srcdir)/dynamic_list_2.t +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -shared -Wl,--dynamic-list,$(srcdir)/dynamic_list_2.t dynamic_list_lib2.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list_lib2.o: dynamic_list_lib2.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -fpic -o $@ $< + @GCC_TRUE@@NATIVE_LINKER_TRUE@libthin1.a: thin_archive_test_1.o alt/thin_archive_test_2.o @GCC_TRUE@@NATIVE_LINKER_TRUE@ rm -f $@ @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_AR) crT $@ $^ @@ -5038,6 +5347,10 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ mv -f $@.tmp $@ @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@two_file_test_1c.o: two_file_test_1.o @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ cp two_file_test_1.o $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@plugin_test_10: plugin_common_test_1.syms plugin_common_test_2.o gcctestdir/ld plugin_test.so +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ $(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so" plugin_common_test_1.syms plugin_common_test_2.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@plugin_test_10.sections: plugin_test_10 +@GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ $(TEST_READELF) -SW $< >$@ 2>/dev/null @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@plugin_test.so: plugin_test.o @GCC_TRUE@@NATIVE_LINKER_TRUE@@PLUGINS_TRUE@ $(LINK) -Bgcctestdir/ -shared plugin_test.o @@ -5315,6 +5628,18 @@ uninstall-am: @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -Wl,--gdb-index $< @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@gdb_index_test_4.stdout: gdb_index_test_4 @GCC_TRUE@@HAVE_PUBNAMES_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) --debug-dump=gdb_index $< > $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_4.syms: ehdr_start_test_4 +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_NM) ehdr_start_test_4 > $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_4: ehdr_start_test_4.o gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -Wl,-Ttext=0x100100 $< +@GCC_TRUE@@NATIVE_LINKER_TRUE@ehdr_start_test_4.o: ehdr_start_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -DEHDR_START_WEAK -o $@ $< +@GCC_TRUE@@NATIVE_LINKER_TRUE@defsym_test.syms: defsym_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -sW $< > $@ +@GCC_TRUE@@NATIVE_LINKER_TRUE@defsym_test: defsym_test.o gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) -Bgcctestdir/ -Wl,--defsym=bar=foo defsym_test.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@defsym_test.o: defsym_test.c +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(COMPILE) -c -o $@ $< # End-to-end incremental linking tests. # Incremental linking is currently supported only on the x86_64 target. @@ -5390,6 +5715,10 @@ uninstall-am: @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ @sleep 1 @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ cp -f incr_comdat_test_2_v3.o incr_comdat_test_1_tmp.o @DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Wl,--incremental-update -Bgcctestdir/ incr_comdat_test_1.o incr_comdat_test_1_tmp.o +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_1.o: exception_test_1.cc gcctestdir/as +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -fpic -Bgcctestdir/ -Wa,-madd-bnd-prefix -o $@ $< +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@exception_x86_64_bnd_2.o: exception_test_2.cc gcctestdir/as +@DEFAULT_TARGET_X86_64_TRUE@@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -c -Bgcctestdir/ -Wa,-madd-bnd-prefix -o $@ $< @NATIVE_OR_CROSS_LINKER_TRUE@script_test_10.o: script_test_10.s @NATIVE_OR_CROSS_LINKER_TRUE@ $(TEST_AS) -o $@ $< @NATIVE_OR_CROSS_LINKER_TRUE@script_test_10: $(srcdir)/script_test_10.t script_test_10.o gcctestdir/ld diff --git a/binutils-2.25/gold/testsuite/arm_abs_global.sh b/binutils-2.25/gold/testsuite/arm_abs_global.sh index 26abc24a..7445b1c9 100755 --- a/binutils-2.25/gold/testsuite/arm_abs_global.sh +++ b/binutils-2.25/gold/testsuite/arm_abs_global.sh @@ -2,7 +2,7 @@ # arm_abs_global.sh -- test ARM absolute relocations against global symbols. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_attr_merge.sh b/binutils-2.25/gold/testsuite/arm_attr_merge.sh index 3066f4f1..a579bb43 100755 --- a/binutils-2.25/gold/testsuite/arm_attr_merge.sh +++ b/binutils-2.25/gold/testsuite/arm_attr_merge.sh @@ -2,7 +2,7 @@ # arm_attr_merge.sh -- test ARM attributes merging. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_branch_in_range.sh b/binutils-2.25/gold/testsuite/arm_branch_in_range.sh index dc6f36f3..b034c9b5 100755 --- a/binutils-2.25/gold/testsuite/arm_branch_in_range.sh +++ b/binutils-2.25/gold/testsuite/arm_branch_in_range.sh @@ -3,7 +3,7 @@ # arm_branch_in_range.sh -- test ARM/THUMB/THUMB branch instructions whose # targets are just within the branch range limits. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_branch_out_of_range.sh b/binutils-2.25/gold/testsuite/arm_branch_out_of_range.sh index aac638f3..aba1873b 100755 --- a/binutils-2.25/gold/testsuite/arm_branch_out_of_range.sh +++ b/binutils-2.25/gold/testsuite/arm_branch_out_of_range.sh @@ -3,7 +3,7 @@ # arm_branch_out_of_range.sh -- test ARM/THUMB/THUMB branch instructions whose # targets are just out of the branch range limits. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_branch_range.t b/binutils-2.25/gold/testsuite/arm_branch_range.t index 865e4042..7db4c640 100644 --- a/binutils-2.25/gold/testsuite/arm_branch_range.t +++ b/binutils-2.25/gold/testsuite/arm_branch_range.t @@ -1,6 +1,6 @@ /* arm_banch_range.t -- linker script to test ARM branch range. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_cortex_a8.sh b/binutils-2.25/gold/testsuite/arm_cortex_a8.sh index 5e25c251..cd7c3c8f 100755 --- a/binutils-2.25/gold/testsuite/arm_cortex_a8.sh +++ b/binutils-2.25/gold/testsuite/arm_cortex_a8.sh @@ -2,7 +2,7 @@ # arm_cortex_a8.sh -- a test case for the Cortex-A8 workaround. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_exidx_test.sh b/binutils-2.25/gold/testsuite/arm_exidx_test.sh index e196f122..9f7bd759 100755 --- a/binutils-2.25/gold/testsuite/arm_exidx_test.sh +++ b/binutils-2.25/gold/testsuite/arm_exidx_test.sh @@ -2,7 +2,7 @@ # arm_exidx_test.sh -- a test case for .ARM.exidx section. -# Copyright 2011 Free Software Foundation, Inc. +# Copyright (C) 2011-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_farcall_arm_arm.sh b/binutils-2.25/gold/testsuite/arm_farcall_arm_arm.sh index 7d95528e..ae59dd2e 100755 --- a/binutils-2.25/gold/testsuite/arm_farcall_arm_arm.sh +++ b/binutils-2.25/gold/testsuite/arm_farcall_arm_arm.sh @@ -2,7 +2,7 @@ # arm_farcall_arm_arm.sh -- a test case for ARM->ARM farcall veneers -# Copyright 2010, 2011, Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Matthew Gretton-Dann <matthew.gretton-dann@arm.com> # Based upon arm_cortex_a8.sh # Written by Doug Kwan <dougkwan@google.com>. diff --git a/binutils-2.25/gold/testsuite/arm_farcall_arm_thumb.sh b/binutils-2.25/gold/testsuite/arm_farcall_arm_thumb.sh index 2df2d653..8847f441 100755 --- a/binutils-2.25/gold/testsuite/arm_farcall_arm_thumb.sh +++ b/binutils-2.25/gold/testsuite/arm_farcall_arm_thumb.sh @@ -2,7 +2,7 @@ # arm_farcall_arm_thumb.sh -- a test case for ARM->Thumb farcall veneers. -# Copyright 2010, 2011, Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Matthew Gretton-Dann <matthew.gretton-dann@arm.com> # Based upon arm_cortex_a8.sh # Written by Doug Kwan <dougkwan@google.com>. diff --git a/binutils-2.25/gold/testsuite/arm_farcall_thumb_arm.sh b/binutils-2.25/gold/testsuite/arm_farcall_thumb_arm.sh index e22da46a..b13e7833 100755 --- a/binutils-2.25/gold/testsuite/arm_farcall_thumb_arm.sh +++ b/binutils-2.25/gold/testsuite/arm_farcall_thumb_arm.sh @@ -2,7 +2,7 @@ # arm_farcall_thumb_arm.sh -- a test case for Thumb->ARM farcall veneers. -# Copyright 2010, 2011, Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Matthew Gretton-Dann <matthew.gretton-dann@arm.com> # Based upon arm_cortex_a8.sh # Written by Doug Kwan <dougkwan@google.com>. diff --git a/binutils-2.25/gold/testsuite/arm_farcall_thumb_thumb.sh b/binutils-2.25/gold/testsuite/arm_farcall_thumb_thumb.sh index 23fb0cd7..838535c4 100755 --- a/binutils-2.25/gold/testsuite/arm_farcall_thumb_thumb.sh +++ b/binutils-2.25/gold/testsuite/arm_farcall_thumb_thumb.sh @@ -2,7 +2,7 @@ # arm_farcall_thumb_thumb.sh -- a test case for Thumb->Thumb farcall veneers. -# Copyright 2010, 2011, Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Matthew Gretton-Dann <matthew.gretton-dann@arm.com> # Based upon arm_cortex_a8.sh # Written by Doug Kwan <dougkwan@google.com>. diff --git a/binutils-2.25/gold/testsuite/arm_fix_1176.sh b/binutils-2.25/gold/testsuite/arm_fix_1176.sh index 152b0a32..4fe54658 100755 --- a/binutils-2.25/gold/testsuite/arm_fix_1176.sh +++ b/binutils-2.25/gold/testsuite/arm_fix_1176.sh @@ -2,7 +2,7 @@ # arm_fix_1176.sh -- a test case for the ARM1176 workaround. -# Copyright 2010, 2011, Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Matthew Gretton-Dann <matthew.gretton-dann@arm.com> # Based upon arm_cortex_a8.sh # Written by Doug Kwan <dougkwan@google.com>. diff --git a/binutils-2.25/gold/testsuite/arm_fix_v4bx.sh b/binutils-2.25/gold/testsuite/arm_fix_v4bx.sh index a331ff97..aeead675 100755 --- a/binutils-2.25/gold/testsuite/arm_fix_v4bx.sh +++ b/binutils-2.25/gold/testsuite/arm_fix_v4bx.sh @@ -2,7 +2,7 @@ # arm_v4bx.sh -- a test case for --fix-v4bx and --fix-v4bx-interworking. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_thm_jump11.t b/binutils-2.25/gold/testsuite/arm_thm_jump11.t index 2ec41436..abd22524 100644 --- a/binutils-2.25/gold/testsuite/arm_thm_jump11.t +++ b/binutils-2.25/gold/testsuite/arm_thm_jump11.t @@ -1,6 +1,6 @@ /* arm_thm_jump11.t -- linker script to test R_ARM_THM_JUMP11 relocation. - Copyright 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Written by Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_thm_jump8.t b/binutils-2.25/gold/testsuite/arm_thm_jump8.t index fa674b44..d2af57d8 100644 --- a/binutils-2.25/gold/testsuite/arm_thm_jump8.t +++ b/binutils-2.25/gold/testsuite/arm_thm_jump8.t @@ -1,6 +1,6 @@ /* arm_thm_jump8.t -- linker script to test R_ARM_THM_JUMP8 relocation. - Copyright 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Written by Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/arm_unaligned_reloc.sh b/binutils-2.25/gold/testsuite/arm_unaligned_reloc.sh index 39a5a110..bb1c43e5 100755 --- a/binutils-2.25/gold/testsuite/arm_unaligned_reloc.sh +++ b/binutils-2.25/gold/testsuite/arm_unaligned_reloc.sh @@ -2,7 +2,7 @@ # arm_unaligned_reloc.sh -- test ARM unaligned static data relocations. -# Copyright 2011 Free Software Foundation, Inc. +# Copyright (C) 2011-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/basic_test.cc b/binutils-2.25/gold/testsuite/basic_test.cc index 94910be8..a8729cfa 100644 --- a/binutils-2.25/gold/testsuite/basic_test.cc +++ b/binutils-2.25/gold/testsuite/basic_test.cc @@ -1,6 +1,6 @@ // basic_test.cc -- a test case for gold -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/binary_test.cc b/binutils-2.25/gold/testsuite/binary_test.cc index d645536f..be788bd1 100644 --- a/binutils-2.25/gold/testsuite/binary_test.cc +++ b/binutils-2.25/gold/testsuite/binary_test.cc @@ -1,6 +1,6 @@ // binary_test.cc -- test --format binary for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/binary_unittest.cc b/binutils-2.25/gold/testsuite/binary_unittest.cc index fe109226..f920de82 100644 --- a/binutils-2.25/gold/testsuite/binary_unittest.cc +++ b/binutils-2.25/gold/testsuite/binary_unittest.cc @@ -1,6 +1,6 @@ // binary_unittest.cc -- test Binary_to_elf -// Copyright 2008, 2012 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/common_test_1.c b/binutils-2.25/gold/testsuite/common_test_1.c index f5a28f4d..8c79a0b5 100644 --- a/binutils-2.25/gold/testsuite/common_test_1.c +++ b/binutils-2.25/gold/testsuite/common_test_1.c @@ -1,6 +1,6 @@ /* common_test_1.c -- test common symbol sorting - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/common_test_1_v1.c b/binutils-2.25/gold/testsuite/common_test_1_v1.c index 86abc402..db65063f 100644 --- a/binutils-2.25/gold/testsuite/common_test_1_v1.c +++ b/binutils-2.25/gold/testsuite/common_test_1_v1.c @@ -1,6 +1,6 @@ /* common_test_1_v1.c -- test common symbol sorting - Copyright 2008, 2011 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/common_test_1_v2.c b/binutils-2.25/gold/testsuite/common_test_1_v2.c index c66a647b..81614bfc 100644 --- a/binutils-2.25/gold/testsuite/common_test_1_v2.c +++ b/binutils-2.25/gold/testsuite/common_test_1_v2.c @@ -1,6 +1,6 @@ /* common_test_1_v2.c -- test common symbol sorting - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/common_test_2.c b/binutils-2.25/gold/testsuite/common_test_2.c index ef6d83dd..9f29dfb0 100644 --- a/binutils-2.25/gold/testsuite/common_test_2.c +++ b/binutils-2.25/gold/testsuite/common_test_2.c @@ -1,6 +1,6 @@ /* common_test_2.c -- test common symbol name conflicts - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/common_test_3.c b/binutils-2.25/gold/testsuite/common_test_3.c index ba8960cd..a8d8120e 100644 --- a/binutils-2.25/gold/testsuite/common_test_3.c +++ b/binutils-2.25/gold/testsuite/common_test_3.c @@ -1,6 +1,6 @@ /* common_test_3.c -- test common symbol name conflicts - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/constructor_test.cc b/binutils-2.25/gold/testsuite/constructor_test.cc index 8889a835..5c3aa53f 100644 --- a/binutils-2.25/gold/testsuite/constructor_test.cc +++ b/binutils-2.25/gold/testsuite/constructor_test.cc @@ -1,6 +1,6 @@ // constructor_test.cc -- a test case for gold global constructors -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/copy_test.cc b/binutils-2.25/gold/testsuite/copy_test.cc index 715529d6..856511d5 100644 --- a/binutils-2.25/gold/testsuite/copy_test.cc +++ b/binutils-2.25/gold/testsuite/copy_test.cc @@ -1,6 +1,6 @@ // copy_test.cc -- test copy relocs for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/copy_test_1.cc b/binutils-2.25/gold/testsuite/copy_test_1.cc index 1471bb59..b653ded2 100644 --- a/binutils-2.25/gold/testsuite/copy_test_1.cc +++ b/binutils-2.25/gold/testsuite/copy_test_1.cc @@ -1,6 +1,6 @@ // copy_test_1.cc -- test copy relocs for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/copy_test_2.cc b/binutils-2.25/gold/testsuite/copy_test_2.cc index 01051509..8fd722a9 100644 --- a/binutils-2.25/gold/testsuite/copy_test_2.cc +++ b/binutils-2.25/gold/testsuite/copy_test_2.cc @@ -1,6 +1,6 @@ // copy_test_2.cc -- test copy relocs variables for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/copy_test_v1.cc b/binutils-2.25/gold/testsuite/copy_test_v1.cc index 63f7dfd5..ce028843 100644 --- a/binutils-2.25/gold/testsuite/copy_test_v1.cc +++ b/binutils-2.25/gold/testsuite/copy_test_v1.cc @@ -1,6 +1,6 @@ // copy_test_v1.cc -- test copy relocs for gold -// Copyright 2008, 2011 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/debug_msg.cc b/binutils-2.25/gold/testsuite/debug_msg.cc index 09120020..e5beb5f9 100644 --- a/binutils-2.25/gold/testsuite/debug_msg.cc +++ b/binutils-2.25/gold/testsuite/debug_msg.cc @@ -1,6 +1,6 @@ // debug_msg.cc -- a test case for printing debug info for missing symbols. -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/debug_msg.sh b/binutils-2.25/gold/testsuite/debug_msg.sh index 1227f3f0..4426762d 100755 --- a/binutils-2.25/gold/testsuite/debug_msg.sh +++ b/binutils-2.25/gold/testsuite/debug_msg.sh @@ -2,8 +2,7 @@ # debug_msg.sh -- a test case for printing debug info for missing symbols. -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 -# Free Software Foundation, Inc. +# Copyright (C) 2006-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/defsym_test.c b/binutils-2.25/gold/testsuite/defsym_test.c new file mode 100644 index 00000000..0bf68b21 --- /dev/null +++ b/binutils-2.25/gold/testsuite/defsym_test.c @@ -0,0 +1,15 @@ +#include <stdio.h> + +void foo (void) __attribute__ ((noinline, visibility ("hidden"))); + +void foo (void) { + printf("foo called.\n"); +} + +void bar(void); + +int main(void) { + foo(); + bar(); + return 0; +} diff --git a/binutils-2.25/gold/testsuite/defsym_test.sh b/binutils-2.25/gold/testsuite/defsym_test.sh new file mode 100755 index 00000000..6c1ff115 --- /dev/null +++ b/binutils-2.25/gold/testsuite/defsym_test.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +# defsym_test.sh -- test that --defsym copies type and visiblity. + +# Copyright (C) 2014 Free Software Foundation, Inc. +# Written by Cary Coutant <ccoutant@google.com>. + +# This file is part of gold. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +check() +{ + if ! grep -q "$2" "$1" + then + echo "Did not find expected symbol in $1:" + echo " $2" + echo "" + echo "Actual output below:" + cat "$1" + exit 1 + fi +} + +check defsym_test.syms "FUNC *GLOBAL *HIDDEN .* bar" + +exit 0 diff --git a/binutils-2.25/gold/testsuite/discard_locals_relocatable_test.c b/binutils-2.25/gold/testsuite/discard_locals_relocatable_test.c index f7f8b279..79f82db9 100644 --- a/binutils-2.25/gold/testsuite/discard_locals_relocatable_test.c +++ b/binutils-2.25/gold/testsuite/discard_locals_relocatable_test.c @@ -1,6 +1,6 @@ /* discard_locals_relocatable_test.c -- test --discard-locals/--discard-all -r - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Viktor Kutuzov <vkutuzov@accesssoftek.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/discard_locals_test.c b/binutils-2.25/gold/testsuite/discard_locals_test.c index b7224471..e8766c88 100644 --- a/binutils-2.25/gold/testsuite/discard_locals_test.c +++ b/binutils-2.25/gold/testsuite/discard_locals_test.c @@ -1,6 +1,6 @@ /* discard_locals_test.c -- test --discard-locals option. - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/discard_locals_test.sh b/binutils-2.25/gold/testsuite/discard_locals_test.sh index 3fc679a4..185d09b2 100755 --- a/binutils-2.25/gold/testsuite/discard_locals_test.sh +++ b/binutils-2.25/gold/testsuite/discard_locals_test.sh @@ -2,7 +2,7 @@ # discard_locals_test.sh -- test that local symbols are discarded. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test.h b/binutils-2.25/gold/testsuite/dwp_test.h index 37256d34..8e265ee2 100644 --- a/binutils-2.25/gold/testsuite/dwp_test.h +++ b/binutils-2.25/gold/testsuite/dwp_test.h @@ -1,6 +1,6 @@ // dwp_test.h -- a test case for dwp, header file -*- C++ -*- -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_1.cc b/binutils-2.25/gold/testsuite/dwp_test_1.cc index 71fbc5b3..b3ae8bc8 100644 --- a/binutils-2.25/gold/testsuite/dwp_test_1.cc +++ b/binutils-2.25/gold/testsuite/dwp_test_1.cc @@ -1,6 +1,6 @@ // dwp_test_1.cc -- a test case for dwp -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_1.sh b/binutils-2.25/gold/testsuite/dwp_test_1.sh index 7831a499..90146acd 100755 --- a/binutils-2.25/gold/testsuite/dwp_test_1.sh +++ b/binutils-2.25/gold/testsuite/dwp_test_1.sh @@ -2,7 +2,7 @@ # dwp_test_1.sh -- Test the dwp tool. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_1b.cc b/binutils-2.25/gold/testsuite/dwp_test_1b.cc index c75376b5..7ca28a51 100644 --- a/binutils-2.25/gold/testsuite/dwp_test_1b.cc +++ b/binutils-2.25/gold/testsuite/dwp_test_1b.cc @@ -1,6 +1,6 @@ // dwp_test_1b.cc -- a test case for dwp -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_2.cc b/binutils-2.25/gold/testsuite/dwp_test_2.cc index a1172b31..10baef0f 100644 --- a/binutils-2.25/gold/testsuite/dwp_test_2.cc +++ b/binutils-2.25/gold/testsuite/dwp_test_2.cc @@ -1,6 +1,6 @@ // dwp_test_2.cc -- a test case for dwp -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_2.sh b/binutils-2.25/gold/testsuite/dwp_test_2.sh index 619d73b9..dd0fe510 100755 --- a/binutils-2.25/gold/testsuite/dwp_test_2.sh +++ b/binutils-2.25/gold/testsuite/dwp_test_2.sh @@ -2,7 +2,7 @@ # dwp_test_2.sh -- Test the dwp tool. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dwp_test_main.cc b/binutils-2.25/gold/testsuite/dwp_test_main.cc index abddc0fa..7cf72cae 100644 --- a/binutils-2.25/gold/testsuite/dwp_test_main.cc +++ b/binutils-2.25/gold/testsuite/dwp_test_main.cc @@ -1,6 +1,6 @@ // dwp_test_main.cc -- a test case for dwp -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dyn_weak_ref.sh b/binutils-2.25/gold/testsuite/dyn_weak_ref.sh index b52efaca..e2d200d0 100755 --- a/binutils-2.25/gold/testsuite/dyn_weak_ref.sh +++ b/binutils-2.25/gold/testsuite/dyn_weak_ref.sh @@ -3,7 +3,7 @@ # dyn_weak_ref.sh -- test weak reference remains weak in output even if # gold sees a dynamic weak reference before a static one. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dyn_weak_ref_1.c b/binutils-2.25/gold/testsuite/dyn_weak_ref_1.c index fdd78dd4..b32f3a8e 100644 --- a/binutils-2.25/gold/testsuite/dyn_weak_ref_1.c +++ b/binutils-2.25/gold/testsuite/dyn_weak_ref_1.c @@ -1,7 +1,7 @@ // dyn_weak_ref_1.c -- test that a weak ref remains weak in output when // there is a DSO with the same weak ref. -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Doug Kwan <dougkwan@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dyn_weak_ref_2.c b/binutils-2.25/gold/testsuite/dyn_weak_ref_2.c index 8a087a15..dfd4be10 100644 --- a/binutils-2.25/gold/testsuite/dyn_weak_ref_2.c +++ b/binutils-2.25/gold/testsuite/dyn_weak_ref_2.c @@ -1,7 +1,7 @@ // dyn_weak_ref_1.c -- test that a weak ref remains weak in output when // there is a DSO with the same weak ref. -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Doug Kwan <dougkwan@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dynamic_list.sh b/binutils-2.25/gold/testsuite/dynamic_list.sh index dfd9f0fe..e2ef9fd0 100755 --- a/binutils-2.25/gold/testsuite/dynamic_list.sh +++ b/binutils-2.25/gold/testsuite/dynamic_list.sh @@ -2,7 +2,7 @@ # dynamic_list.sh -- test --dynamic-list and --dynamic-list-* -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/dynamic_list_2.cc b/binutils-2.25/gold/testsuite/dynamic_list_2.cc new file mode 100644 index 00000000..59133123 --- /dev/null +++ b/binutils-2.25/gold/testsuite/dynamic_list_2.cc @@ -0,0 +1,40 @@ +// dynamic_list_test_2.cc -- Test --dynamic-list with shared libraries. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// The goal of this program is to verify that the --dynamic-list option +// allows overrides for symbols listed in the file, and does symbolic +// binding for symbols not listed. + +#include <cstring> + +extern const char* test_foo(); +extern const char* test_bar(); + +int +main(void) +{ + if (strcmp(test_foo(), "override") != 0) + return 1; + if (strcmp(test_bar(), "original") != 0) + return 2; + return 0; +} diff --git a/binutils-2.25/gold/testsuite/dynamic_list_2.t b/binutils-2.25/gold/testsuite/dynamic_list_2.t new file mode 100644 index 00000000..eef848d8 --- /dev/null +++ b/binutils-2.25/gold/testsuite/dynamic_list_2.t @@ -0,0 +1,27 @@ +/* dynamic_list_2.t -- script file for building dynamic_list_lib2.so. + + Copyright (C) 2014 Free Software Foundation, Inc. + Written by Cary Coutant <ccoutant@google.com>. + + This file is part of gold. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +{ + extern "C" { + "foo"; + }; +}; diff --git a/binutils-2.25/gold/testsuite/dynamic_list_lib1.cc b/binutils-2.25/gold/testsuite/dynamic_list_lib1.cc new file mode 100644 index 00000000..afc36ca2 --- /dev/null +++ b/binutils-2.25/gold/testsuite/dynamic_list_lib1.cc @@ -0,0 +1,37 @@ +// dynamic_list_test_lib1.cc -- Test --dynamic-list with shared libraries. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// The goal of this program is to verify that the --dynamic-list option +// allows overrides for symbols listed in the file, and does symbolic +// binding for symbols not listed. + +extern "C" const char* +foo() +{ + return "override"; +} + +extern "C" const char* +bar() +{ + return "override"; +} diff --git a/binutils-2.25/gold/testsuite/dynamic_list_lib2.cc b/binutils-2.25/gold/testsuite/dynamic_list_lib2.cc new file mode 100644 index 00000000..8ed5be5c --- /dev/null +++ b/binutils-2.25/gold/testsuite/dynamic_list_lib2.cc @@ -0,0 +1,49 @@ +// dynamic_list_test_lib2.cc -- Test --dynamic-list with shared libraries. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// The goal of this program is to verify that the --dynamic-list option +// allows overrides for symbols listed in the file, and does symbolic +// binding for symbols not listed. + +extern "C" const char* +foo() +{ + return "original"; +} + +const char* +test_foo() +{ + return foo(); +} + +extern "C" const char* +bar() +{ + return "original"; +} + +const char* +test_bar() +{ + return bar(); +} diff --git a/binutils-2.25/gold/testsuite/ehdr_start_def.cc b/binutils-2.25/gold/testsuite/ehdr_start_def.cc new file mode 100644 index 00000000..f102a78a --- /dev/null +++ b/binutils-2.25/gold/testsuite/ehdr_start_def.cc @@ -0,0 +1,26 @@ +// ehdr_start_def.cc -- test for __ehdr_start linker-defined symbol. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// We provide a user-defined __ehdr_start, to make sure that the +// linker does not override this with the linker-defined symbol. + +char __ehdr_start[] = { 'a', 'b', 'c', 'd' }; diff --git a/binutils-2.25/gold/testsuite/ehdr_start_test.cc b/binutils-2.25/gold/testsuite/ehdr_start_test.cc new file mode 100644 index 00000000..a119b5e8 --- /dev/null +++ b/binutils-2.25/gold/testsuite/ehdr_start_test.cc @@ -0,0 +1,67 @@ +// ehdr_start_test.cc -- test for __ehdr_start linker-defined symbol. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// The goal of this program is to produce as many different types of +// relocations as we can in a stand-alone program that does not use +// TLS. This program is compiled without optimization. + +#include "config.h" + +#include <cassert> +#include <cstdio> + +#include "elfcpp.h" + +#ifdef EHDR_START_WEAK +#define WEAK_ATTR __attribute__ ((weak)) +#else +#define WEAK_ATTR +#endif + +extern char __ehdr_start[] WEAK_ATTR; + +int +main() { + printf("&__ehdr_start = %p\n", &__ehdr_start); + +#ifdef EHDR_START_UNDEF + assert(&__ehdr_start == 0); +#else + assert(&__ehdr_start != NULL); + + printf("ELF header: \\x%02x%c%c%c\n", __ehdr_start[0], __ehdr_start[1], + __ehdr_start[2], __ehdr_start[3]); +#ifdef EHDR_START_USER_DEF + assert(__ehdr_start[0] == 'a' + && __ehdr_start[1] == 'b' + && __ehdr_start[2] == 'c' + && __ehdr_start[3] == 'd'); +#else + assert(__ehdr_start[elfcpp::EI_MAG0] == elfcpp::ELFMAG0 + && __ehdr_start[elfcpp::EI_MAG1] == elfcpp::ELFMAG1 + && __ehdr_start[elfcpp::EI_MAG2] == elfcpp::ELFMAG2 + && __ehdr_start[elfcpp::EI_MAG3] == elfcpp::ELFMAG3); +#endif +#endif + + return 0; +} diff --git a/binutils-2.25/gold/testsuite/ehdr_start_test.t b/binutils-2.25/gold/testsuite/ehdr_start_test.t new file mode 100644 index 00000000..50daa645 --- /dev/null +++ b/binutils-2.25/gold/testsuite/ehdr_start_test.t @@ -0,0 +1,42 @@ +/* ehdr_start_test.t -- __ehdr_start test for gold + + Copyright (C) 2008-2014 Free Software Foundation, Inc. + Written by Ian Lance Taylor <iant@google.com>. + + This file is part of gold. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +/* With luck this will work on all platforms. */ + +SECTIONS +{ + /* Set the text segment to start on a non-page boundary. */ + . = 0x10000040; + + .text : { *(.text) } + . += 0x100000; + . = ALIGN(0x100); + + .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } + .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } + .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) + *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) } + .dynamic : { *(.dynamic) } + .got : { *(.got) } + .got.plt : { *(.got.plt) } + .data : { *(.data .data.* .gnu.linkonce.d.*) } +} diff --git a/binutils-2.25/gold/testsuite/ehdr_start_test_4.sh b/binutils-2.25/gold/testsuite/ehdr_start_test_4.sh new file mode 100755 index 00000000..5e3d20fc --- /dev/null +++ b/binutils-2.25/gold/testsuite/ehdr_start_test_4.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +# ehdr_start_test_4.sh -- test that __ehdr_start symbol is undefined. + +# Copyright (C) 2014 Free Software Foundation, Inc. +# Written by Cary Coutant <ccoutant@google.com>. + +# This file is part of gold. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +check() +{ + if ! grep -q "$2" "$1" + then + echo "Did not find expected symbol in $1:" + echo " $2" + echo "" + echo "Actual output below:" + cat "$1" + exit 1 + fi +} + +check ehdr_start_test_4.syms "U __ehdr_start" + +exit 0 diff --git a/binutils-2.25/gold/testsuite/exception_test.h b/binutils-2.25/gold/testsuite/exception_test.h index 0dcd8f2c..f7825bf9 100644 --- a/binutils-2.25/gold/testsuite/exception_test.h +++ b/binutils-2.25/gold/testsuite/exception_test.h @@ -1,6 +1,6 @@ // exception_test.h -- exception test case for gold, header file -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/exception_test_1.cc b/binutils-2.25/gold/testsuite/exception_test_1.cc index 56ae1434..7972f017 100644 --- a/binutils-2.25/gold/testsuite/exception_test_1.cc +++ b/binutils-2.25/gold/testsuite/exception_test_1.cc @@ -1,6 +1,6 @@ // exception_test_1.cc -- test exception handling for gold, file 1 of 2 -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/exception_test_2.cc b/binutils-2.25/gold/testsuite/exception_test_2.cc index 1098bd18..1267cf63 100644 --- a/binutils-2.25/gold/testsuite/exception_test_2.cc +++ b/binutils-2.25/gold/testsuite/exception_test_2.cc @@ -1,6 +1,6 @@ // exception_test_1.cc -- test exception handling for gold, file 1 of 2 -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/exception_test_main.cc b/binutils-2.25/gold/testsuite/exception_test_main.cc index 09a018d1..a4c644b1 100644 --- a/binutils-2.25/gold/testsuite/exception_test_main.cc +++ b/binutils-2.25/gold/testsuite/exception_test_main.cc @@ -1,6 +1,6 @@ // exception_test_main.cc -- an exception test case for gold, main function -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/exclude_libs_test.sh b/binutils-2.25/gold/testsuite/exclude_libs_test.sh index 65ce03b2..09f50b9e 100755 --- a/binutils-2.25/gold/testsuite/exclude_libs_test.sh +++ b/binutils-2.25/gold/testsuite/exclude_libs_test.sh @@ -2,7 +2,7 @@ # exclude_libs_test.sh -- test that library symbols are not exported. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/final_layout.cc b/binutils-2.25/gold/testsuite/final_layout.cc index f5338859..71065c77 100644 --- a/binutils-2.25/gold/testsuite/final_layout.cc +++ b/binutils-2.25/gold/testsuite/final_layout.cc @@ -1,6 +1,6 @@ // final_layout.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/final_layout.sh b/binutils-2.25/gold/testsuite/final_layout.sh index d9d86ee3..c93e2657 100755 --- a/binutils-2.25/gold/testsuite/final_layout.sh +++ b/binutils-2.25/gold/testsuite/final_layout.sh @@ -2,7 +2,7 @@ # final_layout.sh -- test --final-layout -# Copyright 2010, 2011 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_comdat_test.sh b/binutils-2.25/gold/testsuite/gc_comdat_test.sh index baff98d0..1a38f212 100755 --- a/binutils-2.25/gold/testsuite/gc_comdat_test.sh +++ b/binutils-2.25/gold/testsuite/gc_comdat_test.sh @@ -2,7 +2,7 @@ # gc_comdat_test.sh -- test --gc-sections -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_comdat_test_1.cc b/binutils-2.25/gold/testsuite/gc_comdat_test_1.cc index 0b4b286d..8db55e91 100644 --- a/binutils-2.25/gold/testsuite/gc_comdat_test_1.cc +++ b/binutils-2.25/gold/testsuite/gc_comdat_test_1.cc @@ -1,6 +1,6 @@ // gc_comdat_test_1.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_comdat_test_2.cc b/binutils-2.25/gold/testsuite/gc_comdat_test_2.cc index 5841bdf0..1d68be27 100644 --- a/binutils-2.25/gold/testsuite/gc_comdat_test_2.cc +++ b/binutils-2.25/gold/testsuite/gc_comdat_test_2.cc @@ -1,6 +1,6 @@ // gc_comdat_test_2.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_dynamic_list_test.c b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.c new file mode 100644 index 00000000..fb9a92ee --- /dev/null +++ b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.c @@ -0,0 +1,34 @@ +// gc_dynamic_list_test.cc -- Check that --gc-sections honors --dynamic-list. + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// The goal of this program is to verify that the symbol "keep" is not +// garbage-collected when it is named in a --dynamic-list script. + +extern void keep(void); + +void +keep(void) +{} + +int +main(void) +{ return 0; } diff --git a/binutils-2.25/gold/testsuite/gc_dynamic_list_test.sh b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.sh new file mode 100755 index 00000000..a586929e --- /dev/null +++ b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# gc_comdat_test.sh -- test --gc-sections + +# Copyright (C) 2014 Free Software Foundation, Inc. +# Written by Cary Coutant <ccoutant@google.com>. + +# This file is part of gold. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +# The goal of this program is to verify if comdat's and garbage +# collection work together. Files gc_comdat_test_1.cc and +# gc_comdat_test_2.cc are used in this test. This program checks +# if the kept comdat section is garbage collected. + +check() +{ + if ! grep -q "$2" "$1" + then + echo "Garbage collection should not have collected '$2'" + exit 1 + fi +} + +check gc_dynamic_list_test.stdout "keep" diff --git a/binutils-2.25/gold/testsuite/gc_dynamic_list_test.t b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.t new file mode 100644 index 00000000..c0b818e2 --- /dev/null +++ b/binutils-2.25/gold/testsuite/gc_dynamic_list_test.t @@ -0,0 +1,25 @@ +/* gc_dynamic_list_test.t -- script file for gc_dynamic_list_test.cc + + Copyright (C) 2014 Free Software Foundation, Inc. + Written by Cary Coutant <ccoutant@google.com>. + + This file is part of gold. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +{ + keep; +}; diff --git a/binutils-2.25/gold/testsuite/gc_orphan_section_test.cc b/binutils-2.25/gold/testsuite/gc_orphan_section_test.cc index 3443f8d2..bcf06e4d 100644 --- a/binutils-2.25/gold/testsuite/gc_orphan_section_test.cc +++ b/binutils-2.25/gold/testsuite/gc_orphan_section_test.cc @@ -1,6 +1,6 @@ // gc_orphan_section_test.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_orphan_section_test.sh b/binutils-2.25/gold/testsuite/gc_orphan_section_test.sh index 6ce524da..de2d2fe1 100755 --- a/binutils-2.25/gold/testsuite/gc_orphan_section_test.sh +++ b/binutils-2.25/gold/testsuite/gc_orphan_section_test.sh @@ -2,7 +2,7 @@ # gc_orphan_section_test.sh -- test --gc-sections -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_tls_test.cc b/binutils-2.25/gold/testsuite/gc_tls_test.cc index 1b10d987..2d29d68b 100644 --- a/binutils-2.25/gold/testsuite/gc_tls_test.cc +++ b/binutils-2.25/gold/testsuite/gc_tls_test.cc @@ -1,6 +1,6 @@ // gc_tls_test.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gc_tls_test.sh b/binutils-2.25/gold/testsuite/gc_tls_test.sh index c4635c99..7b6485e9 100755 --- a/binutils-2.25/gold/testsuite/gc_tls_test.sh +++ b/binutils-2.25/gold/testsuite/gc_tls_test.sh @@ -2,7 +2,7 @@ # gc_tls_test.sh -- test -- gc + tls -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test.cc b/binutils-2.25/gold/testsuite/gdb_index_test.cc index d5ac2f19..6a562c3b 100644 --- a/binutils-2.25/gold/testsuite/gdb_index_test.cc +++ b/binutils-2.25/gold/testsuite/gdb_index_test.cc @@ -1,6 +1,6 @@ // gdb_index_test.cc -- a test case for the --gdb-index option. -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_1.sh b/binutils-2.25/gold/testsuite/gdb_index_test_1.sh index f04c8a77..5fae5500 100755 --- a/binutils-2.25/gold/testsuite/gdb_index_test_1.sh +++ b/binutils-2.25/gold/testsuite/gdb_index_test_1.sh @@ -2,7 +2,7 @@ # gdb_index_test_1.sh -- a test case for the --gdb-index option. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_2.sh b/binutils-2.25/gold/testsuite/gdb_index_test_2.sh index e31aa422..a1d4d83d 100755 --- a/binutils-2.25/gold/testsuite/gdb_index_test_2.sh +++ b/binutils-2.25/gold/testsuite/gdb_index_test_2.sh @@ -2,7 +2,7 @@ # gdb_index_test_2.sh -- a test case for the --gdb-index option. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_3.c b/binutils-2.25/gold/testsuite/gdb_index_test_3.c index df492613..683510c8 100644 --- a/binutils-2.25/gold/testsuite/gdb_index_test_3.c +++ b/binutils-2.25/gold/testsuite/gdb_index_test_3.c @@ -1,6 +1,6 @@ // gdb_index_test.c -- a test case for the --gdb-index option. -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_3.sh b/binutils-2.25/gold/testsuite/gdb_index_test_3.sh index bd1500b8..7b4948d7 100755 --- a/binutils-2.25/gold/testsuite/gdb_index_test_3.sh +++ b/binutils-2.25/gold/testsuite/gdb_index_test_3.sh @@ -2,7 +2,7 @@ # gdb_index_test_3.sh -- a test case for the --gdb-index option. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. @@ -37,7 +37,7 @@ check() STDOUT=gdb_index_test_3.stdout -check $STDOUT "^Version [45]" +check $STDOUT "^Version [4-7]" # Look for the symbols we know should be in the symbol table. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_4.sh b/binutils-2.25/gold/testsuite/gdb_index_test_4.sh index 44c8a9a1..3d5d66bb 100755 --- a/binutils-2.25/gold/testsuite/gdb_index_test_4.sh +++ b/binutils-2.25/gold/testsuite/gdb_index_test_4.sh @@ -2,7 +2,7 @@ # gdb_index_test_4.sh -- a test case for the --gdb-index option. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/gdb_index_test_comm.sh b/binutils-2.25/gold/testsuite/gdb_index_test_comm.sh index 4ab07b3c..e8888250 100755 --- a/binutils-2.25/gold/testsuite/gdb_index_test_comm.sh +++ b/binutils-2.25/gold/testsuite/gdb_index_test_comm.sh @@ -2,7 +2,7 @@ # gdb_index_test_comm.sh -- common code for --gdb-index tests. -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. @@ -37,7 +37,7 @@ check() STDOUT="$1" -check $STDOUT "^Version [45]" +check $STDOUT "^Version [4-7]" # Look for the symbols we know should be in the symbol table. diff --git a/binutils-2.25/gold/testsuite/hidden_test.sh b/binutils-2.25/gold/testsuite/hidden_test.sh index df51b376..39ebbf68 100755 --- a/binutils-2.25/gold/testsuite/hidden_test.sh +++ b/binutils-2.25/gold/testsuite/hidden_test.sh @@ -2,7 +2,7 @@ # hidden_test.sh -- a test case for hidden and internal symbols. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/hidden_test_1.c b/binutils-2.25/gold/testsuite/hidden_test_1.c index f685cabf..e9c96e6e 100644 --- a/binutils-2.25/gold/testsuite/hidden_test_1.c +++ b/binutils-2.25/gold/testsuite/hidden_test_1.c @@ -1,6 +1,6 @@ /* hidden_test_1.c -- test hidden and internal symbols - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/hidden_test_main.c b/binutils-2.25/gold/testsuite/hidden_test_main.c index c54864dc..60b8893b 100644 --- a/binutils-2.25/gold/testsuite/hidden_test_main.c +++ b/binutils-2.25/gold/testsuite/hidden_test_main.c @@ -1,6 +1,6 @@ /* hidden_test_main.c -- test hidden and internal symbols - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_keep_unique_test.cc b/binutils-2.25/gold/testsuite/icf_keep_unique_test.cc index 37f6437a..75a83859 100644 --- a/binutils-2.25/gold/testsuite/icf_keep_unique_test.cc +++ b/binutils-2.25/gold/testsuite/icf_keep_unique_test.cc @@ -1,6 +1,6 @@ // icf_keep_unique_test.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_keep_unique_test.sh b/binutils-2.25/gold/testsuite/icf_keep_unique_test.sh index c2673737..d481d019 100755 --- a/binutils-2.25/gold/testsuite/icf_keep_unique_test.sh +++ b/binutils-2.25/gold/testsuite/icf_keep_unique_test.sh @@ -2,7 +2,7 @@ # icf_keep_unique_test.sh -- test --icf --keep-unique -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.cc b/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.cc index 35a96bc5..dc588a34 100644 --- a/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.cc +++ b/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.cc @@ -1,6 +1,6 @@ // icf_preemptible_functions_test.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.sh b/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.sh index dd90d7fd..c2a9f1ce 100755 --- a/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.sh +++ b/binutils-2.25/gold/testsuite/icf_preemptible_functions_test.sh @@ -2,7 +2,7 @@ # icf_preemptible_functions_test.sh -- test --icf=all -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_safe_so_test.cc b/binutils-2.25/gold/testsuite/icf_safe_so_test.cc index 0f50ad61..bca852f8 100644 --- a/binutils-2.25/gold/testsuite/icf_safe_so_test.cc +++ b/binutils-2.25/gold/testsuite/icf_safe_so_test.cc @@ -1,6 +1,6 @@ // icf_safe_so_test.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_safe_so_test.sh b/binutils-2.25/gold/testsuite/icf_safe_so_test.sh index 813248e5..804334da 100755 --- a/binutils-2.25/gold/testsuite/icf_safe_so_test.sh +++ b/binutils-2.25/gold/testsuite/icf_safe_so_test.sh @@ -2,7 +2,7 @@ # icf_safe_so_test.sh -- test --icf=safe -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_safe_test.cc b/binutils-2.25/gold/testsuite/icf_safe_test.cc index 87294dcc..46bced18 100644 --- a/binutils-2.25/gold/testsuite/icf_safe_test.cc +++ b/binutils-2.25/gold/testsuite/icf_safe_test.cc @@ -1,6 +1,6 @@ // icf_safe_test.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_safe_test.sh b/binutils-2.25/gold/testsuite/icf_safe_test.sh index fe224f69..e18468ca 100755 --- a/binutils-2.25/gold/testsuite/icf_safe_test.sh +++ b/binutils-2.25/gold/testsuite/icf_safe_test.sh @@ -2,7 +2,7 @@ # icf_safe_test.sh -- test --icf=safe -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test.sh b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test.sh index 9077e25e..64b69d3f 100755 --- a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test.sh +++ b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test.sh @@ -2,7 +2,7 @@ # icf_sht_rel_addend_test.sh -- test --icf=all -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_1.cc b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_1.cc index ecc2a1b0..8f20a71a 100644 --- a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_1.cc +++ b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_1.cc @@ -1,6 +1,6 @@ // icf_sht_rel_addend_test_1.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_2.cc b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_2.cc index d85e3b4d..dfc2bd4f 100644 --- a/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_2.cc +++ b/binutils-2.25/gold/testsuite/icf_sht_rel_addend_test_2.cc @@ -1,6 +1,6 @@ // icf_sht_rel_addend_test_2.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_string_merge_test.cc b/binutils-2.25/gold/testsuite/icf_string_merge_test.cc index b1e11910..869ee805 100644 --- a/binutils-2.25/gold/testsuite/icf_string_merge_test.cc +++ b/binutils-2.25/gold/testsuite/icf_string_merge_test.cc @@ -1,6 +1,6 @@ // icf_string_merge_test.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_string_merge_test.sh b/binutils-2.25/gold/testsuite/icf_string_merge_test.sh index e8d70de2..a86728c6 100755 --- a/binutils-2.25/gold/testsuite/icf_string_merge_test.sh +++ b/binutils-2.25/gold/testsuite/icf_string_merge_test.sh @@ -2,7 +2,7 @@ # icf_string_merge_test.sh -- test --icf=all -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_test.cc b/binutils-2.25/gold/testsuite/icf_test.cc index c7a5ea9d..41168ec2 100644 --- a/binutils-2.25/gold/testsuite/icf_test.cc +++ b/binutils-2.25/gold/testsuite/icf_test.cc @@ -1,6 +1,6 @@ // icf_test.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_test.sh b/binutils-2.25/gold/testsuite/icf_test.sh index 50abd90e..07af1a9d 100755 --- a/binutils-2.25/gold/testsuite/icf_test.sh +++ b/binutils-2.25/gold/testsuite/icf_test.sh @@ -2,7 +2,7 @@ # icf_test.sh -- test --icf -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/icf_virtual_function_folding_test.cc b/binutils-2.25/gold/testsuite/icf_virtual_function_folding_test.cc index ba063c8a..ba144bf8 100644 --- a/binutils-2.25/gold/testsuite/icf_virtual_function_folding_test.cc +++ b/binutils-2.25/gold/testsuite/icf_virtual_function_folding_test.cc @@ -1,6 +1,6 @@ // icf_virtual_function_folding_test.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incr_comdat_test_1.cc b/binutils-2.25/gold/testsuite/incr_comdat_test_1.cc index 7a232c24..7a798bdb 100644 --- a/binutils-2.25/gold/testsuite/incr_comdat_test_1.cc +++ b/binutils-2.25/gold/testsuite/incr_comdat_test_1.cc @@ -1,6 +1,6 @@ // incr_comdat_test_1.cc -- test incremental update with comdat sections -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v1.cc b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v1.cc index f7d6a8cc..02307ac9 100644 --- a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v1.cc +++ b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v1.cc @@ -1,6 +1,6 @@ // incr_comdat_test_2.cc -- test incremental update with comdat sections -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v2.cc b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v2.cc index fca7fda9..936d7a1b 100644 --- a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v2.cc +++ b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v2.cc @@ -1,6 +1,6 @@ // incr_comdat_test_2.cc -- test incremental update with comdat sections -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v3.cc b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v3.cc index cbb83c1a..3c402e98 100644 --- a/binutils-2.25/gold/testsuite/incr_comdat_test_2_v3.cc +++ b/binutils-2.25/gold/testsuite/incr_comdat_test_2_v3.cc @@ -1,6 +1,6 @@ // incr_comdat_test_2.cc -- test incremental update with comdat sections -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incremental_test.sh b/binutils-2.25/gold/testsuite/incremental_test.sh index 930d7d14..d8c0c845 100755 --- a/binutils-2.25/gold/testsuite/incremental_test.sh +++ b/binutils-2.25/gold/testsuite/incremental_test.sh @@ -2,7 +2,7 @@ # incremental_test.sh -- test that incremental linking information is correct. -# Copyright 2009, 2010 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Rafael Avila de Espindola <espindola@google.com> # and Cary Coutant <ccoutant@google.com> diff --git a/binutils-2.25/gold/testsuite/incremental_test_1.c b/binutils-2.25/gold/testsuite/incremental_test_1.c index 291caa06..850d1164 100644 --- a/binutils-2.25/gold/testsuite/incremental_test_1.c +++ b/binutils-2.25/gold/testsuite/incremental_test_1.c @@ -1,4 +1,4 @@ -// Copyright 2009, 2010 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Rafael Avila de Espindola <espindola@google.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/incremental_test_2.c b/binutils-2.25/gold/testsuite/incremental_test_2.c index 7fcecc42..a86c0fba 100644 --- a/binutils-2.25/gold/testsuite/incremental_test_2.c +++ b/binutils-2.25/gold/testsuite/incremental_test_2.c @@ -1,4 +1,4 @@ -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Rafael Avila de Espindola <espindola@google.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/initpri1.c b/binutils-2.25/gold/testsuite/initpri1.c index 1c5252d8..2fbe6bd9 100644 --- a/binutils-2.25/gold/testsuite/initpri1.c +++ b/binutils-2.25/gold/testsuite/initpri1.c @@ -1,6 +1,6 @@ /* initpri1.c -- test constructor priorities. - Copyright 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2014 Free Software Foundation, Inc. Copied from the gcc testsuite, where the test was contributed by Mark Mitchell <mark@codesourcery.com>. diff --git a/binutils-2.25/gold/testsuite/initpri2.c b/binutils-2.25/gold/testsuite/initpri2.c index 525661f5..023d76ab 100644 --- a/binutils-2.25/gold/testsuite/initpri2.c +++ b/binutils-2.25/gold/testsuite/initpri2.c @@ -1,6 +1,6 @@ /* initpri2.c -- test mixing init_array and ctor priorities. - Copyright 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Copied from the gcc configury, where the test was contributed by H.J. Lu <hongjiu.lu@intel.com>. diff --git a/binutils-2.25/gold/testsuite/initpri3.c b/binutils-2.25/gold/testsuite/initpri3.c index 01e233d1..65963a90 100644 --- a/binutils-2.25/gold/testsuite/initpri3.c +++ b/binutils-2.25/gold/testsuite/initpri3.c @@ -1,6 +1,6 @@ /* initpri3.c -- test ctor odering when using init_array. - Copyright 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/justsyms.t b/binutils-2.25/gold/testsuite/justsyms.t index 45418be8..2af2d01f 100644 --- a/binutils-2.25/gold/testsuite/justsyms.t +++ b/binutils-2.25/gold/testsuite/justsyms.t @@ -1,6 +1,6 @@ /* justsyms.t -- test --just-symbols for gold. - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/justsyms_1.cc b/binutils-2.25/gold/testsuite/justsyms_1.cc index 50716b06..362f939b 100644 --- a/binutils-2.25/gold/testsuite/justsyms_1.cc +++ b/binutils-2.25/gold/testsuite/justsyms_1.cc @@ -1,6 +1,6 @@ // justsyms_1.cc -- test --just-symbols for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/justsyms_2.cc b/binutils-2.25/gold/testsuite/justsyms_2.cc index dbbf4b54..c0d9c948 100644 --- a/binutils-2.25/gold/testsuite/justsyms_2.cc +++ b/binutils-2.25/gold/testsuite/justsyms_2.cc @@ -1,6 +1,6 @@ // justsyms_2.cc -- test --just-symbols for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/justsyms_exec.c b/binutils-2.25/gold/testsuite/justsyms_exec.c index 66702863..3bb6d2fd 100644 --- a/binutils-2.25/gold/testsuite/justsyms_exec.c +++ b/binutils-2.25/gold/testsuite/justsyms_exec.c @@ -1,6 +1,6 @@ // justsyms_exec.c -- test --just-symbols for gold -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/justsyms_lib.c b/binutils-2.25/gold/testsuite/justsyms_lib.c index 9666fb78..9e043d9e 100644 --- a/binutils-2.25/gold/testsuite/justsyms_lib.c +++ b/binutils-2.25/gold/testsuite/justsyms_lib.c @@ -1,6 +1,6 @@ // justsyms_lib.cc -- test --just-symbols for gold -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/large.c b/binutils-2.25/gold/testsuite/large.c index 796242a1..0702d112 100644 --- a/binutils-2.25/gold/testsuite/large.c +++ b/binutils-2.25/gold/testsuite/large.c @@ -1,6 +1,6 @@ /* large.c -- a test case for gold - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/large_symbol_alignment.cc b/binutils-2.25/gold/testsuite/large_symbol_alignment.cc index 1b4a63d4..296d7aab 100644 --- a/binutils-2.25/gold/testsuite/large_symbol_alignment.cc +++ b/binutils-2.25/gold/testsuite/large_symbol_alignment.cc @@ -1,6 +1,6 @@ // large_symbol_alignment.cc -- a test case for gold -// Copyright 2013 Free Software Foundation, Inc. +// Copyright (C) 2013-2014 Free Software Foundation, Inc. // Written by Alexander Ivchenko <alexander.ivchenko@intel.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/leb128_unittest.cc b/binutils-2.25/gold/testsuite/leb128_unittest.cc index 05c70937..5b438b35 100644 --- a/binutils-2.25/gold/testsuite/leb128_unittest.cc +++ b/binutils-2.25/gold/testsuite/leb128_unittest.cc @@ -1,6 +1,6 @@ // leb_unittest.cc -- test read_signed_LEB_128 and read_unsigned_LEB_128 -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/many_sections_test.cc b/binutils-2.25/gold/testsuite/many_sections_test.cc index e4b74c34..44530e21 100644 --- a/binutils-2.25/gold/testsuite/many_sections_test.cc +++ b/binutils-2.25/gold/testsuite/many_sections_test.cc @@ -1,6 +1,6 @@ // many_sections_test.cc -- test lots of sections for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/memory_test.sh b/binutils-2.25/gold/testsuite/memory_test.sh index db3917a7..4e858011 100755 --- a/binutils-2.25/gold/testsuite/memory_test.sh +++ b/binutils-2.25/gold/testsuite/memory_test.sh @@ -2,7 +2,7 @@ # memory_test.sh -- test MEMORY regions. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Nick Clifton <nickc@redhat.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/merge_string_literals.sh b/binutils-2.25/gold/testsuite/merge_string_literals.sh index 486a8959..f17ab132 100755 --- a/binutils-2.25/gold/testsuite/merge_string_literals.sh +++ b/binutils-2.25/gold/testsuite/merge_string_literals.sh @@ -2,7 +2,7 @@ # merge_string_literals.sh -- test -# Copyright 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2014 Free Software Foundation, Inc. # Written by Alexander Ivchenko <alexander.ivchenko@intel.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/merge_string_literals_1.cc b/binutils-2.25/gold/testsuite/merge_string_literals_1.cc index fc0487c3..b313dfc2 100644 --- a/binutils-2.25/gold/testsuite/merge_string_literals_1.cc +++ b/binutils-2.25/gold/testsuite/merge_string_literals_1.cc @@ -1,6 +1,6 @@ // merge_string_literals_1.c -- a test case for gold -// Copyright 2013 Free Software Foundation, Inc. +// Copyright (C) 2013-2014 Free Software Foundation, Inc. // Written by Alexander Ivchenko <alexander.ivchenko@intel.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/merge_string_literals_2.cc b/binutils-2.25/gold/testsuite/merge_string_literals_2.cc index d1185cde..73265f53 100644 --- a/binutils-2.25/gold/testsuite/merge_string_literals_2.cc +++ b/binutils-2.25/gold/testsuite/merge_string_literals_2.cc @@ -1,6 +1,6 @@ // merge_string_literals_2.c -- a test case for gold -// Copyright 2013 Free Software Foundation, Inc. +// Copyright (C) 2013-2014 Free Software Foundation, Inc. // Written by Alexander Ivchenko <alexander.ivchenko@intel.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/missing_key_func.cc b/binutils-2.25/gold/testsuite/missing_key_func.cc index 5a5b7d95..e89e95a0 100644 --- a/binutils-2.25/gold/testsuite/missing_key_func.cc +++ b/binutils-2.25/gold/testsuite/missing_key_func.cc @@ -1,6 +1,6 @@ // basic_test.cc -- a test case for gold -// Copyright 2013 Free Software Foundation, Inc. +// Copyright (C) 2013-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/missing_key_func.sh b/binutils-2.25/gold/testsuite/missing_key_func.sh index 54c7b57b..0027c7f8 100755 --- a/binutils-2.25/gold/testsuite/missing_key_func.sh +++ b/binutils-2.25/gold/testsuite/missing_key_func.sh @@ -3,7 +3,7 @@ # missing_key_func.sh -- a test case for printing error messages when # a class is missing its key function. -# Copyright 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/no_version_test.c b/binutils-2.25/gold/testsuite/no_version_test.c index e42d04f0..1171fad9 100644 --- a/binutils-2.25/gold/testsuite/no_version_test.c +++ b/binutils-2.25/gold/testsuite/no_version_test.c @@ -1,6 +1,6 @@ // ver_no_default.c -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Doug Kwan <dougkwan@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/no_version_test.sh b/binutils-2.25/gold/testsuite/no_version_test.sh index f4ca9b10..cbcf24f8 100755 --- a/binutils-2.25/gold/testsuite/no_version_test.sh +++ b/binutils-2.25/gold/testsuite/no_version_test.sh @@ -3,7 +3,7 @@ # no_version_test.sh -- test that .gnu.version* sections are not created # in a shared object when symbol versioning is not used. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/object_unittest.cc b/binutils-2.25/gold/testsuite/object_unittest.cc index 7dedeaef..adbd2757 100644 --- a/binutils-2.25/gold/testsuite/object_unittest.cc +++ b/binutils-2.25/gold/testsuite/object_unittest.cc @@ -1,6 +1,6 @@ // object_unittest.cc -- test Object, Relobj, etc. -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/pie_copyrelocs_shared_test.cc b/binutils-2.25/gold/testsuite/pie_copyrelocs_shared_test.cc new file mode 100644 index 00000000..85134175 --- /dev/null +++ b/binutils-2.25/gold/testsuite/pie_copyrelocs_shared_test.cc @@ -0,0 +1,26 @@ +// pie_copyrelocs_shared_test.cc -- a test case for gold, used +// by pie_copyrelocs_test + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Sriraman Tallam <tmsriram@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + + + +int glob_a = 128; diff --git a/binutils-2.25/gold/testsuite/pie_copyrelocs_test.cc b/binutils-2.25/gold/testsuite/pie_copyrelocs_test.cc new file mode 100644 index 00000000..bebe89dc --- /dev/null +++ b/binutils-2.25/gold/testsuite/pie_copyrelocs_test.cc @@ -0,0 +1,31 @@ +// pie_coprelocs_test.cc -- a test case for gold + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Sriraman Tallam <tmsriram@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// Check if copy relocs are used to access globals below when -fpie is +// is not used to compile but -pie is used to link. + +extern int glob_a; + +int main () +{ + return glob_a - 128; +} diff --git a/binutils-2.25/gold/testsuite/plugin_common_test_1.c b/binutils-2.25/gold/testsuite/plugin_common_test_1.c index 262c2985..6f764fdc 100644 --- a/binutils-2.25/gold/testsuite/plugin_common_test_1.c +++ b/binutils-2.25/gold/testsuite/plugin_common_test_1.c @@ -1,6 +1,6 @@ /* plugin_common_test_1.c -- test common symbol handling in plugins - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_common_test_2.c b/binutils-2.25/gold/testsuite/plugin_common_test_2.c index 54139ceb..df9f7f1f 100644 --- a/binutils-2.25/gold/testsuite/plugin_common_test_2.c +++ b/binutils-2.25/gold/testsuite/plugin_common_test_2.c @@ -1,6 +1,6 @@ /* plugin_common_test_2.c -- test common symbol handling in plugins - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. @@ -26,7 +26,7 @@ #include <assert.h> -int c1; +int c1 __attribute__((aligned (8))); extern int c2; int c3; int c4 = 40; diff --git a/binutils-2.25/gold/testsuite/plugin_final_layout.cc b/binutils-2.25/gold/testsuite/plugin_final_layout.cc index 169eeefd..a40c5d69 100644 --- a/binutils-2.25/gold/testsuite/plugin_final_layout.cc +++ b/binutils-2.25/gold/testsuite/plugin_final_layout.cc @@ -1,6 +1,6 @@ // plugin_final_layout.cc -- a test case for gold -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_final_layout.sh b/binutils-2.25/gold/testsuite/plugin_final_layout.sh index 75a40d3c..dc456fab 100755 --- a/binutils-2.25/gold/testsuite/plugin_final_layout.sh +++ b/binutils-2.25/gold/testsuite/plugin_final_layout.sh @@ -2,7 +2,7 @@ # plugin_final_layout.sh -- test -# Copyright 2011 Free Software Foundation, Inc. +# Copyright (C) 2011-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_section_order.c b/binutils-2.25/gold/testsuite/plugin_section_order.c index fdc6fe4e..48d30df2 100644 --- a/binutils-2.25/gold/testsuite/plugin_section_order.c +++ b/binutils-2.25/gold/testsuite/plugin_section_order.c @@ -1,6 +1,6 @@ /* plugin_section_reorder.c -- Simple plugin to reorder function sections - Copyright 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Written by Sriraman Tallam <tmsriram@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test.c b/binutils-2.25/gold/testsuite/plugin_test.c index 47d400a0..79ae44e1 100644 --- a/binutils-2.25/gold/testsuite/plugin_test.c +++ b/binutils-2.25/gold/testsuite/plugin_test.c @@ -1,6 +1,6 @@ /* test_plugin.c -- simple linker plugin test - Copyright 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com>. This file is part of gold. @@ -584,6 +584,13 @@ parse_readelf_line(char* p, struct sym_info* info) p += strcspn(p, " "); p += strspn(p, " "); + if (*p == '[') + { + /* Skip st_other. */ + p += strcspn(p, "]"); + p += strspn(p, "] "); + } + /* Section field. */ info->sect = p; p += strcspn(p, " "); diff --git a/binutils-2.25/gold/testsuite/plugin_test_1.sh b/binutils-2.25/gold/testsuite/plugin_test_1.sh index 4d3ed417..0f9c9b1d 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_1.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_1.sh @@ -2,7 +2,7 @@ # plugin_test_1.sh -- a test case for the plugin API. -# Copyright 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_10.sh b/binutils-2.25/gold/testsuite/plugin_test_10.sh new file mode 100755 index 00000000..80b9f155 --- /dev/null +++ b/binutils-2.25/gold/testsuite/plugin_test_10.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +# plugin_test_10.sh -- a test case for the plugin API. + +# Copyright (C) 2010-2014 Free Software Foundation, Inc. +# Written by Rafael Ávila de Espíndola <rafael.espindola@gmail.com> + +# This file is part of gold. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +# This file goes with plugin_common_test_1.c and plugin_common_test_2.c. +# The first file is claimed by the plugin, the second one is not. We test +# the bigger alignment in plugin_common_test_2.c is used. + +set -e + +grep -q ".bss.* 8$" plugin_test_10.sections + +exit 0 diff --git a/binutils-2.25/gold/testsuite/plugin_test_2.sh b/binutils-2.25/gold/testsuite/plugin_test_2.sh index 293b1f00..e06a85f1 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_2.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_2.sh @@ -2,7 +2,7 @@ # plugin_test_2.sh -- a test case for the plugin API. -# Copyright 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_3.sh b/binutils-2.25/gold/testsuite/plugin_test_3.sh index 39356d13..61a7d956 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_3.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_3.sh @@ -2,7 +2,7 @@ # plugin_test_3.sh -- a test case for the plugin API. -# Copyright 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_4.sh b/binutils-2.25/gold/testsuite/plugin_test_4.sh index 89df46ca..9500e410 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_4.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_4.sh @@ -2,7 +2,7 @@ # plugin_test_4.sh -- a test case for the plugin API. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_6.sh b/binutils-2.25/gold/testsuite/plugin_test_6.sh index 9b368e78..1edb4619 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_6.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_6.sh @@ -2,7 +2,7 @@ # plugin_test_6.sh -- a test case for the plugin API. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_7.sh b/binutils-2.25/gold/testsuite/plugin_test_7.sh index 27723f9c..04a554a3 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_7.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_7.sh @@ -2,7 +2,7 @@ # plugin_test_7.sh -- a test case for the plugin API with GC. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Rafael Avila de Espindola <espindola@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_7_1.c b/binutils-2.25/gold/testsuite/plugin_test_7_1.c index 5f4c4f34..fdb00748 100644 --- a/binutils-2.25/gold/testsuite/plugin_test_7_1.c +++ b/binutils-2.25/gold/testsuite/plugin_test_7_1.c @@ -1,6 +1,6 @@ /* plugin_test_7_1.c -- a test case for the plugin API with GC. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Rafael Avila de Espindola <espindola@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_7_2.c b/binutils-2.25/gold/testsuite/plugin_test_7_2.c index 06b7676b..e2ca4261 100644 --- a/binutils-2.25/gold/testsuite/plugin_test_7_2.c +++ b/binutils-2.25/gold/testsuite/plugin_test_7_2.c @@ -1,6 +1,6 @@ /* plugin_test_7_1.c -- a test case for the plugin API with GC. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Rafael Avila de Espindola <espindola@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/plugin_test_tls.sh b/binutils-2.25/gold/testsuite/plugin_test_tls.sh index 22b5458c..fe30cf4e 100755 --- a/binutils-2.25/gold/testsuite/plugin_test_tls.sh +++ b/binutils-2.25/gold/testsuite/plugin_test_tls.sh @@ -2,7 +2,7 @@ # plugin_test_tls.sh -- a test case for the plugin API. -# Copyright 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/pr12826.sh b/binutils-2.25/gold/testsuite/pr12826.sh index a4fa2e3a..bd3e3a9c 100755 --- a/binutils-2.25/gold/testsuite/pr12826.sh +++ b/binutils-2.25/gold/testsuite/pr12826.sh @@ -2,7 +2,7 @@ # pr12826.sh -- a test case for combining ARM arch attributes. -# Copyright 2011 Free Software Foundation, Inc. +# Copyright (C) 2011-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/pr14265.sh b/binutils-2.25/gold/testsuite/pr14265.sh index 4e477b22..c82875fa 100755 --- a/binutils-2.25/gold/testsuite/pr14265.sh +++ b/binutils-2.25/gold/testsuite/pr14265.sh @@ -2,7 +2,7 @@ # pr14265.sh -- test --gc-sections with KEEP -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Nick Clifton <nickc@redhat.com> # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_1.cc b/binutils-2.25/gold/testsuite/protected_1.cc index 049bda74..e9725a95 100644 --- a/binutils-2.25/gold/testsuite/protected_1.cc +++ b/binutils-2.25/gold/testsuite/protected_1.cc @@ -1,6 +1,6 @@ // protected_1.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_2.cc b/binutils-2.25/gold/testsuite/protected_2.cc index 19d8276e..44bd9afb 100644 --- a/binutils-2.25/gold/testsuite/protected_2.cc +++ b/binutils-2.25/gold/testsuite/protected_2.cc @@ -1,6 +1,6 @@ // protected_2.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_3.cc b/binutils-2.25/gold/testsuite/protected_3.cc index 8a27a2a6..b22181cd 100644 --- a/binutils-2.25/gold/testsuite/protected_3.cc +++ b/binutils-2.25/gold/testsuite/protected_3.cc @@ -1,6 +1,6 @@ // protected_2.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_4.cc b/binutils-2.25/gold/testsuite/protected_4.cc index 58e3e2b0..918d7c13 100644 --- a/binutils-2.25/gold/testsuite/protected_4.cc +++ b/binutils-2.25/gold/testsuite/protected_4.cc @@ -1,6 +1,6 @@ // protected_4.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_main_1.cc b/binutils-2.25/gold/testsuite/protected_main_1.cc index 271446f8..b1c3b87e 100644 --- a/binutils-2.25/gold/testsuite/protected_main_1.cc +++ b/binutils-2.25/gold/testsuite/protected_main_1.cc @@ -1,6 +1,6 @@ // protected_main_1.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_main_2.cc b/binutils-2.25/gold/testsuite/protected_main_2.cc index 69603227..29bfcfa3 100644 --- a/binutils-2.25/gold/testsuite/protected_main_2.cc +++ b/binutils-2.25/gold/testsuite/protected_main_2.cc @@ -1,6 +1,6 @@ // protected_main_2.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/protected_main_3.cc b/binutils-2.25/gold/testsuite/protected_main_3.cc index f356f3d2..02f4c948 100644 --- a/binutils-2.25/gold/testsuite/protected_main_3.cc +++ b/binutils-2.25/gold/testsuite/protected_main_3.cc @@ -1,6 +1,6 @@ // protected_main_3.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/relro_script_test.t b/binutils-2.25/gold/testsuite/relro_script_test.t index 3a6e3e91..e4af879b 100644 --- a/binutils-2.25/gold/testsuite/relro_script_test.t +++ b/binutils-2.25/gold/testsuite/relro_script_test.t @@ -1,6 +1,6 @@ /* relro_test.t -- relro script test for gold - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/relro_test.cc b/binutils-2.25/gold/testsuite/relro_test.cc index 795ad391..b64e5cf2 100644 --- a/binutils-2.25/gold/testsuite/relro_test.cc +++ b/binutils-2.25/gold/testsuite/relro_test.cc @@ -1,6 +1,6 @@ // relro_test.cc -- test -z relro for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/relro_test.sh b/binutils-2.25/gold/testsuite/relro_test.sh index 47a94910..69f0ff7c 100755 --- a/binutils-2.25/gold/testsuite/relro_test.sh +++ b/binutils-2.25/gold/testsuite/relro_test.sh @@ -2,7 +2,7 @@ # relro_test.sh -- test -z relro -# Copyright 2010, 2011 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/relro_test_main.cc b/binutils-2.25/gold/testsuite/relro_test_main.cc index 6f5ea2bb..8a142742 100644 --- a/binutils-2.25/gold/testsuite/relro_test_main.cc +++ b/binutils-2.25/gold/testsuite/relro_test_main.cc @@ -1,6 +1,6 @@ // relro_test_main.cc -- test -z relro for gold, main function -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/retain_symbols_file_test.sh b/binutils-2.25/gold/testsuite/retain_symbols_file_test.sh index e0d3ffce..21373d10 100755 --- a/binutils-2.25/gold/testsuite/retain_symbols_file_test.sh +++ b/binutils-2.25/gold/testsuite/retain_symbols_file_test.sh @@ -2,7 +2,7 @@ # retain_symbols_file_test.sh -- a test case for -retain-symbols-file -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Craig Silverstein <csilvers@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_1.cc b/binutils-2.25/gold/testsuite/script_test_1.cc index 1bdf770e..ecdf67e2 100644 --- a/binutils-2.25/gold/testsuite/script_test_1.cc +++ b/binutils-2.25/gold/testsuite/script_test_1.cc @@ -1,6 +1,6 @@ // script_test_1.cc -- linker script test 1 for gold -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_1.t b/binutils-2.25/gold/testsuite/script_test_1.t index af971c66..22a1e393 100644 --- a/binutils-2.25/gold/testsuite/script_test_1.t +++ b/binutils-2.25/gold/testsuite/script_test_1.t @@ -1,6 +1,6 @@ /* script_test_1.t -- linker script test 1 for gold - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_10.sh b/binutils-2.25/gold/testsuite/script_test_10.sh index 58446ab5..41b2bc75 100755 --- a/binutils-2.25/gold/testsuite/script_test_10.sh +++ b/binutils-2.25/gold/testsuite/script_test_10.sh @@ -2,7 +2,7 @@ # script_test_10.sh -- test for the section order. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Viktor Kutuzov <vkutuzov@accesssoftek.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_10.t b/binutils-2.25/gold/testsuite/script_test_10.t index 98f2107a..14b0578f 100644 --- a/binutils-2.25/gold/testsuite/script_test_10.t +++ b/binutils-2.25/gold/testsuite/script_test_10.t @@ -1,6 +1,6 @@ /* script_test_10.t -- test section order for gold. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Viktor Kutuzov <vkutuzov@accesssoftek.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_2.cc b/binutils-2.25/gold/testsuite/script_test_2.cc index 71045516..59c007c2 100644 --- a/binutils-2.25/gold/testsuite/script_test_2.cc +++ b/binutils-2.25/gold/testsuite/script_test_2.cc @@ -1,6 +1,6 @@ // script_test_2.cc -- linker script test 2 for gold -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_2.t b/binutils-2.25/gold/testsuite/script_test_2.t index 81ed9aad..eabf4ec3 100644 --- a/binutils-2.25/gold/testsuite/script_test_2.t +++ b/binutils-2.25/gold/testsuite/script_test_2.t @@ -1,6 +1,6 @@ /* script_test_2.t -- linker script test 2 for gold - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_2a.cc b/binutils-2.25/gold/testsuite/script_test_2a.cc index 6c665eb7..7c1990db 100644 --- a/binutils-2.25/gold/testsuite/script_test_2a.cc +++ b/binutils-2.25/gold/testsuite/script_test_2a.cc @@ -1,6 +1,6 @@ // script_test_2a.cc -- linker script test 2, file 1 -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_2b.cc b/binutils-2.25/gold/testsuite/script_test_2b.cc index 9b19eb02..c99d10d2 100644 --- a/binutils-2.25/gold/testsuite/script_test_2b.cc +++ b/binutils-2.25/gold/testsuite/script_test_2b.cc @@ -1,6 +1,6 @@ // script_test_2a.cc -- linker script test 2, file 2 -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_3.sh b/binutils-2.25/gold/testsuite/script_test_3.sh index d114edd1..a24505e1 100755 --- a/binutils-2.25/gold/testsuite/script_test_3.sh +++ b/binutils-2.25/gold/testsuite/script_test_3.sh @@ -2,7 +2,7 @@ # script_test_3.sh -- test PHDRS -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_3.t b/binutils-2.25/gold/testsuite/script_test_3.t index accd0559..22a0c6f3 100644 --- a/binutils-2.25/gold/testsuite/script_test_3.t +++ b/binutils-2.25/gold/testsuite/script_test_3.t @@ -1,6 +1,6 @@ /* script_test_3.t -- linker script test 3 for gold - Copyright 2008, 2010 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_4.sh b/binutils-2.25/gold/testsuite/script_test_4.sh index 755d1a05..6a0a26b8 100755 --- a/binutils-2.25/gold/testsuite/script_test_4.sh +++ b/binutils-2.25/gold/testsuite/script_test_4.sh @@ -2,7 +2,7 @@ # script_test_4.sh -- test load segment -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_4.t b/binutils-2.25/gold/testsuite/script_test_4.t index 3ba5e938..c441ad5b 100644 --- a/binutils-2.25/gold/testsuite/script_test_4.t +++ b/binutils-2.25/gold/testsuite/script_test_4.t @@ -1,6 +1,6 @@ /* script_test_4.t -- linker script test 4 for gold - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_5.cc b/binutils-2.25/gold/testsuite/script_test_5.cc index b5aec291..d90477c7 100644 --- a/binutils-2.25/gold/testsuite/script_test_5.cc +++ b/binutils-2.25/gold/testsuite/script_test_5.cc @@ -1,6 +1,6 @@ // script_test_5.cc -- a test case for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_5.sh b/binutils-2.25/gold/testsuite/script_test_5.sh index 76e2e317..9ff94861 100755 --- a/binutils-2.25/gold/testsuite/script_test_5.sh +++ b/binutils-2.25/gold/testsuite/script_test_5.sh @@ -2,7 +2,7 @@ # script_test_5.sh -- test linker script with uncovered sections -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Cary Coutant <ccoutant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_5.t b/binutils-2.25/gold/testsuite/script_test_5.t index 4a7d13f6..65ada933 100644 --- a/binutils-2.25/gold/testsuite/script_test_5.t +++ b/binutils-2.25/gold/testsuite/script_test_5.t @@ -1,6 +1,6 @@ /* script_test_5.t -- linker script test 5 for gold - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_6.sh b/binutils-2.25/gold/testsuite/script_test_6.sh index bbc96d8d..fc8d5049 100755 --- a/binutils-2.25/gold/testsuite/script_test_6.sh +++ b/binutils-2.25/gold/testsuite/script_test_6.sh @@ -2,7 +2,7 @@ # script_test_6.sh -- test for -Ttext, -Tdata and -Tbss with a script. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_6.t b/binutils-2.25/gold/testsuite/script_test_6.t index d3127e39..e123a1e0 100644 --- a/binutils-2.25/gold/testsuite/script_test_6.t +++ b/binutils-2.25/gold/testsuite/script_test_6.t @@ -1,6 +1,6 @@ /* script_test_5.t -- linker script test 5 for gold - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_7.sh b/binutils-2.25/gold/testsuite/script_test_7.sh index 982a1c1a..efcbb4c5 100755 --- a/binutils-2.25/gold/testsuite/script_test_7.sh +++ b/binutils-2.25/gold/testsuite/script_test_7.sh @@ -2,7 +2,7 @@ # script_test_7.sh -- test for SEGMENT_START expressions. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_7.t b/binutils-2.25/gold/testsuite/script_test_7.t index ab2bbeea..575225d0 100644 --- a/binutils-2.25/gold/testsuite/script_test_7.t +++ b/binutils-2.25/gold/testsuite/script_test_7.t @@ -1,6 +1,6 @@ /* script_test_5.t -- linker script test 5 for gold - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_8.sh b/binutils-2.25/gold/testsuite/script_test_8.sh index 83e8e725..02531d27 100755 --- a/binutils-2.25/gold/testsuite/script_test_8.sh +++ b/binutils-2.25/gold/testsuite/script_test_8.sh @@ -3,7 +3,7 @@ # script_test_8.sh -- test for SEGMENT_START expressions with # -Ttext, -Tdata and -Tbss in a script. -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_9.cc b/binutils-2.25/gold/testsuite/script_test_9.cc index 84f12f6e..19d71530 100644 --- a/binutils-2.25/gold/testsuite/script_test_9.cc +++ b/binutils-2.25/gold/testsuite/script_test_9.cc @@ -1,6 +1,6 @@ // script_test_9.cc -- a test case for gold -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Rafael Avila de Espindola <espindola@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/script_test_9.sh b/binutils-2.25/gold/testsuite/script_test_9.sh index 9f9aba6f..29a8efe4 100755 --- a/binutils-2.25/gold/testsuite/script_test_9.sh +++ b/binutils-2.25/gold/testsuite/script_test_9.sh @@ -3,7 +3,7 @@ # script_test_9.sh -- Check that the script_test_9.t script has placed # .init and .text in the same segment. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Rafael Avila de Espindola <espindola@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/searched_file_test.cc b/binutils-2.25/gold/testsuite/searched_file_test.cc index aa99e242..31277f11 100644 --- a/binutils-2.25/gold/testsuite/searched_file_test.cc +++ b/binutils-2.25/gold/testsuite/searched_file_test.cc @@ -1,6 +1,6 @@ // searched_file_test.cc -- test -l:foo.a for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Chris Demetriou <cgd@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/searched_file_test_lib.cc b/binutils-2.25/gold/testsuite/searched_file_test_lib.cc index 0686e520..340afc42 100644 --- a/binutils-2.25/gold/testsuite/searched_file_test_lib.cc +++ b/binutils-2.25/gold/testsuite/searched_file_test_lib.cc @@ -1,6 +1,6 @@ // searched_file_test_lib.cc -- test -l:foo.a for gold -// Copyright 2009 Free Software Foundation, Inc. +// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Written by Chris Demetriou <cgd@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/section_sorting_name.cc b/binutils-2.25/gold/testsuite/section_sorting_name.cc index e89c1ed3..cb7260c8 100644 --- a/binutils-2.25/gold/testsuite/section_sorting_name.cc +++ b/binutils-2.25/gold/testsuite/section_sorting_name.cc @@ -1,6 +1,6 @@ // section_sorting_name.cc -- a test case for gold -// Copyright 2013 Free Software Foundation, Inc. +// Copyright (C) 2013-2014 Free Software Foundation, Inc. // Written by Alexander Ivchenko <alexander.ivchenko@intel.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/section_sorting_name.sh b/binutils-2.25/gold/testsuite/section_sorting_name.sh index 00b6994e..b4132995 100755 --- a/binutils-2.25/gold/testsuite/section_sorting_name.sh +++ b/binutils-2.25/gold/testsuite/section_sorting_name.sh @@ -2,7 +2,7 @@ # section_sorting_name.sh -- test -# Copyright 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2014 Free Software Foundation, Inc. # Written by Alexander Ivchenko <alexander.ivchenko@intel.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/split_i386.sh b/binutils-2.25/gold/testsuite/split_i386.sh index e94fea2b..f48ea5dd 100755 --- a/binutils-2.25/gold/testsuite/split_i386.sh +++ b/binutils-2.25/gold/testsuite/split_i386.sh @@ -2,7 +2,7 @@ # split_i386.sh -- test -fstack-split for i386 -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/split_x86_64.sh b/binutils-2.25/gold/testsuite/split_x86_64.sh index 61544b29..530c4b1b 100755 --- a/binutils-2.25/gold/testsuite/split_x86_64.sh +++ b/binutils-2.25/gold/testsuite/split_x86_64.sh @@ -2,7 +2,7 @@ # split_x86_64.sh -- test -fstack-split for x86_64 -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/start_lib_test_1.c b/binutils-2.25/gold/testsuite/start_lib_test_1.c index 024276a9..3cd8a51b 100644 --- a/binutils-2.25/gold/testsuite/start_lib_test_1.c +++ b/binutils-2.25/gold/testsuite/start_lib_test_1.c @@ -1,6 +1,6 @@ /* start_lib_test_1.c -- test --start-lib/--end-lib. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/start_lib_test_2.c b/binutils-2.25/gold/testsuite/start_lib_test_2.c index 443a79cf..b6a99a14 100644 --- a/binutils-2.25/gold/testsuite/start_lib_test_2.c +++ b/binutils-2.25/gold/testsuite/start_lib_test_2.c @@ -1,6 +1,6 @@ /* start_lib_test_2.c -- test --start-lib/--end-lib. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/start_lib_test_3.c b/binutils-2.25/gold/testsuite/start_lib_test_3.c index 79b467b7..64a1ebf5 100644 --- a/binutils-2.25/gold/testsuite/start_lib_test_3.c +++ b/binutils-2.25/gold/testsuite/start_lib_test_3.c @@ -1,6 +1,6 @@ /* start_lib_test_3.c -- test --start-lib/--end-lib. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/start_lib_test_main.c b/binutils-2.25/gold/testsuite/start_lib_test_main.c index 7809baa5..6531ba91 100644 --- a/binutils-2.25/gold/testsuite/start_lib_test_main.c +++ b/binutils-2.25/gold/testsuite/start_lib_test_main.c @@ -1,6 +1,6 @@ /* start_lib_test_main.c -- test --start-lib/--end-lib. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Cary Coutant <ccoutant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/strong_ref_weak_def.sh b/binutils-2.25/gold/testsuite/strong_ref_weak_def.sh index 17afc5bd..d5b766fd 100755 --- a/binutils-2.25/gold/testsuite/strong_ref_weak_def.sh +++ b/binutils-2.25/gold/testsuite/strong_ref_weak_def.sh @@ -3,7 +3,7 @@ # strong_ref_weak_def.sh -- test non-weak reference to a weak symbol defined # in a DSO. -# Copyright 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2014 Free Software Foundation, Inc. # Written by Doug Kwan <dougkwan@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/strong_ref_weak_def_1.c b/binutils-2.25/gold/testsuite/strong_ref_weak_def_1.c index bc00e770..61493f25 100644 --- a/binutils-2.25/gold/testsuite/strong_ref_weak_def_1.c +++ b/binutils-2.25/gold/testsuite/strong_ref_weak_def_1.c @@ -1,7 +1,7 @@ // strong_ref_weak_def_1.c -- test a strong reference to a weak definition // in a DSO. -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Doug Kwan <dougkwan@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/strong_ref_weak_def_2.c b/binutils-2.25/gold/testsuite/strong_ref_weak_def_2.c index 4801f6d2..c7c9edec 100644 --- a/binutils-2.25/gold/testsuite/strong_ref_weak_def_2.c +++ b/binutils-2.25/gold/testsuite/strong_ref_weak_def_2.c @@ -1,7 +1,7 @@ // strong_ref_weak_def_2.c -- test a strong reference to a weak definition // in a DSO. -// Copyright 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2014 Free Software Foundation, Inc. // Written by Doug Kwan <dougkwan@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/test.cc b/binutils-2.25/gold/testsuite/test.cc index b08d6d77..80f2ab55 100644 --- a/binutils-2.25/gold/testsuite/test.cc +++ b/binutils-2.25/gold/testsuite/test.cc @@ -1,6 +1,6 @@ // test.cc -- simplistic test framework for gold. -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/test.h b/binutils-2.25/gold/testsuite/test.h index 37060d3a..1522bcf1 100644 --- a/binutils-2.25/gold/testsuite/test.h +++ b/binutils-2.25/gold/testsuite/test.h @@ -1,6 +1,6 @@ // test.h -- simplistic test framework for gold unittests -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/testfile.cc b/binutils-2.25/gold/testsuite/testfile.cc index f360e3d0..3defb4d3 100644 --- a/binutils-2.25/gold/testsuite/testfile.cc +++ b/binutils-2.25/gold/testsuite/testfile.cc @@ -1,6 +1,6 @@ // testfile.cc -- Dummy ELF objects for testing purposes. -// Copyright 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/testfile.h b/binutils-2.25/gold/testsuite/testfile.h index 91781797..dac02ff2 100644 --- a/binutils-2.25/gold/testsuite/testfile.h +++ b/binutils-2.25/gold/testsuite/testfile.h @@ -1,6 +1,6 @@ // testfile.h -- test input files -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/testmain.cc b/binutils-2.25/gold/testsuite/testmain.cc index ac99000e..a3a105c0 100644 --- a/binutils-2.25/gold/testsuite/testmain.cc +++ b/binutils-2.25/gold/testsuite/testmain.cc @@ -1,6 +1,6 @@ // testmain.cc -- main function for simplisitic gold test framework. -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/text_section_grouping.cc b/binutils-2.25/gold/testsuite/text_section_grouping.cc index 5a3a809f..dc29a1f0 100644 --- a/binutils-2.25/gold/testsuite/text_section_grouping.cc +++ b/binutils-2.25/gold/testsuite/text_section_grouping.cc @@ -1,6 +1,6 @@ // text_section_grouping.cc -- a test case for gold -// Copyright 2012 Free Software Foundation, Inc. +// Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/text_section_grouping.sh b/binutils-2.25/gold/testsuite/text_section_grouping.sh index 84ebe4c9..a819e57a 100755 --- a/binutils-2.25/gold/testsuite/text_section_grouping.sh +++ b/binutils-2.25/gold/testsuite/text_section_grouping.sh @@ -2,7 +2,7 @@ # text_section_grouping.sh -- test -# Copyright 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2014 Free Software Foundation, Inc. # Written by Sriraman Tallam <tmsriram@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thin_archive_main.cc b/binutils-2.25/gold/testsuite/thin_archive_main.cc index 6c38715c..6f19c0a9 100644 --- a/binutils-2.25/gold/testsuite/thin_archive_main.cc +++ b/binutils-2.25/gold/testsuite/thin_archive_main.cc @@ -1,6 +1,6 @@ // thin_archive_main.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thin_archive_test_1.cc b/binutils-2.25/gold/testsuite/thin_archive_test_1.cc index db239376..f44b3dd0 100644 --- a/binutils-2.25/gold/testsuite/thin_archive_test_1.cc +++ b/binutils-2.25/gold/testsuite/thin_archive_test_1.cc @@ -1,6 +1,6 @@ // thin_archive_test_1.cc -- part of a test case for thin archives -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thin_archive_test_2.cc b/binutils-2.25/gold/testsuite/thin_archive_test_2.cc index 2c1ee313..15c9a7a1 100644 --- a/binutils-2.25/gold/testsuite/thin_archive_test_2.cc +++ b/binutils-2.25/gold/testsuite/thin_archive_test_2.cc @@ -1,6 +1,6 @@ // thin_archive_test_2.cc -- part of a test case for thin archives -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thin_archive_test_3.cc b/binutils-2.25/gold/testsuite/thin_archive_test_3.cc index b58c59fa..96cd79d4 100644 --- a/binutils-2.25/gold/testsuite/thin_archive_test_3.cc +++ b/binutils-2.25/gold/testsuite/thin_archive_test_3.cc @@ -1,6 +1,6 @@ // thin_archive_test_3.cc -- part of a test case for thin archives -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thin_archive_test_4.cc b/binutils-2.25/gold/testsuite/thin_archive_test_4.cc index 1b67c94a..903de113 100644 --- a/binutils-2.25/gold/testsuite/thin_archive_test_4.cc +++ b/binutils-2.25/gold/testsuite/thin_archive_test_4.cc @@ -1,6 +1,6 @@ // thin_archive_test_4.cc -- part of a test case for thin archives -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thumb2_branch_range.t b/binutils-2.25/gold/testsuite/thumb2_branch_range.t index 8fdc7836..2002fb9e 100644 --- a/binutils-2.25/gold/testsuite/thumb2_branch_range.t +++ b/binutils-2.25/gold/testsuite/thumb2_branch_range.t @@ -1,6 +1,6 @@ /* thumb2_banch_range.t -- linker script to test THUMB-2 branch range. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/thumb_branch_range.t b/binutils-2.25/gold/testsuite/thumb_branch_range.t index fa858b55..2b0e54e4 100644 --- a/binutils-2.25/gold/testsuite/thumb_branch_range.t +++ b/binutils-2.25/gold/testsuite/thumb_branch_range.t @@ -1,6 +1,6 @@ /* thumb_banch_range.t -- linker script to test ARM branch range. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Doug Kwan <dougkwan@google.com>. This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/tls_test.cc b/binutils-2.25/gold/testsuite/tls_test.cc index c8757529..7d386582 100644 --- a/binutils-2.25/gold/testsuite/tls_test.cc +++ b/binutils-2.25/gold/testsuite/tls_test.cc @@ -1,6 +1,6 @@ // tls_test.cc -- test TLS variables for gold -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/tls_test.h b/binutils-2.25/gold/testsuite/tls_test.h index 1c98b176..b70c0eee 100644 --- a/binutils-2.25/gold/testsuite/tls_test.h +++ b/binutils-2.25/gold/testsuite/tls_test.h @@ -1,6 +1,6 @@ // tls_test.h -- test TLS variables for gold, header file -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/tls_test_c.c b/binutils-2.25/gold/testsuite/tls_test_c.c index 896191fa..918a5b27 100644 --- a/binutils-2.25/gold/testsuite/tls_test_c.c +++ b/binutils-2.25/gold/testsuite/tls_test_c.c @@ -1,6 +1,6 @@ /* tls_test_c.c -- test TLS common symbol - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/tls_test_file2.cc b/binutils-2.25/gold/testsuite/tls_test_file2.cc index b02a7bdc..86cee67f 100644 --- a/binutils-2.25/gold/testsuite/tls_test_file2.cc +++ b/binutils-2.25/gold/testsuite/tls_test_file2.cc @@ -1,6 +1,6 @@ // tls_test.cc -- test TLS variables for gold -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/tls_test_main.cc b/binutils-2.25/gold/testsuite/tls_test_main.cc index d781a150..42db36f2 100644 --- a/binutils-2.25/gold/testsuite/tls_test_main.cc +++ b/binutils-2.25/gold/testsuite/tls_test_main.cc @@ -1,6 +1,6 @@ // tls_test.cc -- test TLS variables for gold, main function -// Copyright 2006, 2007, 2008, 2011 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_shared.sh b/binutils-2.25/gold/testsuite/two_file_shared.sh index 62403114..84465f85 100755 --- a/binutils-2.25/gold/testsuite/two_file_shared.sh +++ b/binutils-2.25/gold/testsuite/two_file_shared.sh @@ -2,7 +2,7 @@ # two_file_shared.sh -- check that debug info gets symbol addresses -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test.h b/binutils-2.25/gold/testsuite/two_file_test.h index d89f050c..617b8d2a 100644 --- a/binutils-2.25/gold/testsuite/two_file_test.h +++ b/binutils-2.25/gold/testsuite/two_file_test.h @@ -1,6 +1,6 @@ // two_file_test.h -- a two file test case for gold, header file -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_1.cc b/binutils-2.25/gold/testsuite/two_file_test_1.cc index 8b4c8ad4..fdcb7d54 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_1.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_1.cc @@ -1,6 +1,6 @@ // two_file_test_1.cc -- a two file test case for gold, file 1 of 2 -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_1_v1.cc b/binutils-2.25/gold/testsuite/two_file_test_1_v1.cc index 2a236540..2518479a 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_1_v1.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_1_v1.cc @@ -1,6 +1,6 @@ // two_file_test_1_v1.cc -- a two file test case for gold, file 1 of 2 -// Copyright 2006, 2007, 2008, 2011 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_1b.cc b/binutils-2.25/gold/testsuite/two_file_test_1b.cc index 8f6d4e65..4083f0b9 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_1b.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_1b.cc @@ -1,7 +1,7 @@ // two_file_test_1b.cc -- supplementary file for a three-file test case // for gold. -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_1b_v1.cc b/binutils-2.25/gold/testsuite/two_file_test_1b_v1.cc index 0adaf845..3306e9cc 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_1b_v1.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_1b_v1.cc @@ -1,7 +1,7 @@ // two_file_test_1b_v1.cc -- supplementary file for a three-file test case // for gold. -// Copyright 2008, 2011 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_2.cc b/binutils-2.25/gold/testsuite/two_file_test_2.cc index e1aeaf48..e3818f98 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_2.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_2.cc @@ -1,6 +1,6 @@ // two_file_test_2.cc -- a two file test case for gold, file 2 of 2 -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_2_tls.cc b/binutils-2.25/gold/testsuite/two_file_test_2_tls.cc index 6c74c698..3f6dc0b3 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_2_tls.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_2_tls.cc @@ -1,6 +1,6 @@ // two_file_test_2_tls.cc -- a two file test case for gold, with a TLS symbol -// Copyright 2006, 2007, 2008, 2013 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_2_v1.cc b/binutils-2.25/gold/testsuite/two_file_test_2_v1.cc index ea26c66f..664380bf 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_2_v1.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_2_v1.cc @@ -1,6 +1,6 @@ // two_file_test_2_v1.cc -- a two file test case for gold, file 2 of 2 -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_main.cc b/binutils-2.25/gold/testsuite/two_file_test_main.cc index b7e38385..6c1c52c2 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_main.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_main.cc @@ -1,6 +1,6 @@ // two_file_test_main.cc -- a two file test case for gold, main function -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/two_file_test_tls.cc b/binutils-2.25/gold/testsuite/two_file_test_tls.cc index d9a1c39d..5f450a40 100644 --- a/binutils-2.25/gold/testsuite/two_file_test_tls.cc +++ b/binutils-2.25/gold/testsuite/two_file_test_tls.cc @@ -1,6 +1,6 @@ // two_file_test_tls.cc -- a two file test case for gold, main function, with TLS -// Copyright 2006, 2007, 2008, 2013 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/undef_symbol.cc b/binutils-2.25/gold/testsuite/undef_symbol.cc index e35b2b24..306f29a8 100644 --- a/binutils-2.25/gold/testsuite/undef_symbol.cc +++ b/binutils-2.25/gold/testsuite/undef_symbol.cc @@ -1,6 +1,6 @@ // undef_symbol.cc -- a test case for undefined references -// Copyright 2007, 2008, 2013 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/undef_symbol.sh b/binutils-2.25/gold/testsuite/undef_symbol.sh index b689edce..4f6308f4 100755 --- a/binutils-2.25/gold/testsuite/undef_symbol.sh +++ b/binutils-2.25/gold/testsuite/undef_symbol.sh @@ -2,7 +2,7 @@ # undef_symbol.sh -- a test case for undefined symbols in shared libraries -# Copyright 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 2007-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/undef_symbol_main.cc b/binutils-2.25/gold/testsuite/undef_symbol_main.cc index 2c210443..537eed82 100644 --- a/binutils-2.25/gold/testsuite/undef_symbol_main.cc +++ b/binutils-2.25/gold/testsuite/undef_symbol_main.cc @@ -1,6 +1,6 @@ // undef_symbol_1.cc -- a test case for undefined references -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_matching_def.cc b/binutils-2.25/gold/testsuite/ver_matching_def.cc index b654dff5..ee2edc34 100644 --- a/binutils-2.25/gold/testsuite/ver_matching_def.cc +++ b/binutils-2.25/gold/testsuite/ver_matching_def.cc @@ -1,6 +1,6 @@ // ver_matching_def.cc - test matching rules in version_script.map -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_matching_test.sh b/binutils-2.25/gold/testsuite/ver_matching_test.sh index 4880efab..9c7722ec 100755 --- a/binutils-2.25/gold/testsuite/ver_matching_test.sh +++ b/binutils-2.25/gold/testsuite/ver_matching_test.sh @@ -2,7 +2,7 @@ # ver_matching_test.sh -- a test case for version script matching -# Copyright 2008, 2010 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test.h b/binutils-2.25/gold/testsuite/ver_test.h index 0b1aea8d..62a4b374 100644 --- a/binutils-2.25/gold/testsuite/ver_test.h +++ b/binutils-2.25/gold/testsuite/ver_test.h @@ -1,6 +1,6 @@ // ver_test.h -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_1.cc b/binutils-2.25/gold/testsuite/ver_test_1.cc index 42a18ec9..63362340 100644 --- a/binutils-2.25/gold/testsuite/ver_test_1.cc +++ b/binutils-2.25/gold/testsuite/ver_test_1.cc @@ -1,6 +1,6 @@ // ver_test_1.cc -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_1.sh b/binutils-2.25/gold/testsuite/ver_test_1.sh index edf73518..63d5d499 100755 --- a/binutils-2.25/gold/testsuite/ver_test_1.sh +++ b/binutils-2.25/gold/testsuite/ver_test_1.sh @@ -2,7 +2,7 @@ # ver_test_1.sh -- check that protected symbols are local -# Copyright 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_10.script b/binutils-2.25/gold/testsuite/ver_test_10.script index fa9f1759..720220cf 100644 --- a/binutils-2.25/gold/testsuite/ver_test_10.script +++ b/binutils-2.25/gold/testsuite/ver_test_10.script @@ -1,6 +1,6 @@ ## ver_test_10.script -- a test case for gold -## Copyright 2008 Free Software Foundation, Inc. +## Copyright (C) 2008-2014 Free Software Foundation, Inc. ## Written by Ian Lance Taylor <iant@google.com>. ## This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_10.sh b/binutils-2.25/gold/testsuite/ver_test_10.sh index 68138a6d..11044f3c 100755 --- a/binutils-2.25/gold/testsuite/ver_test_10.sh +++ b/binutils-2.25/gold/testsuite/ver_test_10.sh @@ -2,7 +2,7 @@ # ver_test_10.sh -- test global/local symbols -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_2.cc b/binutils-2.25/gold/testsuite/ver_test_2.cc index b81e62e0..bf230d33 100644 --- a/binutils-2.25/gold/testsuite/ver_test_2.cc +++ b/binutils-2.25/gold/testsuite/ver_test_2.cc @@ -1,6 +1,6 @@ // ver_test_2.cc -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_2.script b/binutils-2.25/gold/testsuite/ver_test_2.script index 15329d70..bd62fc1f 100644 --- a/binutils-2.25/gold/testsuite/ver_test_2.script +++ b/binutils-2.25/gold/testsuite/ver_test_2.script @@ -1,6 +1,6 @@ ## ver_test_2.script -- a test case for gold -## Copyright 2007, 2008 Free Software Foundation, Inc. +## Copyright (C) 2007-2014 Free Software Foundation, Inc. ## Written by Cary Coutant <ccoutant@google.com>. ## This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_2.sh b/binutils-2.25/gold/testsuite/ver_test_2.sh index 0bd0f903..bd973bce 100755 --- a/binutils-2.25/gold/testsuite/ver_test_2.sh +++ b/binutils-2.25/gold/testsuite/ver_test_2.sh @@ -2,7 +2,7 @@ # ver_test_2.sh -- test that symbol has correct version -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_3.cc b/binutils-2.25/gold/testsuite/ver_test_3.cc index 022a888f..ec057926 100644 --- a/binutils-2.25/gold/testsuite/ver_test_3.cc +++ b/binutils-2.25/gold/testsuite/ver_test_3.cc @@ -1,6 +1,6 @@ // ver_test_3.cc -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_4.cc b/binutils-2.25/gold/testsuite/ver_test_4.cc index 404dfbc3..ef06e2cf 100644 --- a/binutils-2.25/gold/testsuite/ver_test_4.cc +++ b/binutils-2.25/gold/testsuite/ver_test_4.cc @@ -1,6 +1,6 @@ // ver_test_4.cc -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_4.script b/binutils-2.25/gold/testsuite/ver_test_4.script index e97c74eb..071e3f61 100644 --- a/binutils-2.25/gold/testsuite/ver_test_4.script +++ b/binutils-2.25/gold/testsuite/ver_test_4.script @@ -1,6 +1,6 @@ ## ver_test_4.script -- a test case for gold -## Copyright 2007, 2008 Free Software Foundation, Inc. +## Copyright (C) 2007-2014 Free Software Foundation, Inc. ## Written by Cary Coutant <ccoutant@google.com>. ## This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_4.sh b/binutils-2.25/gold/testsuite/ver_test_4.sh index 3466a5d4..f125f2b5 100755 --- a/binutils-2.25/gold/testsuite/ver_test_4.sh +++ b/binutils-2.25/gold/testsuite/ver_test_4.sh @@ -2,7 +2,7 @@ # ver_test_4.sh -- test that version symbol is visible. -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_5.cc b/binutils-2.25/gold/testsuite/ver_test_5.cc index cffeae64..d861d487 100644 --- a/binutils-2.25/gold/testsuite/ver_test_5.cc +++ b/binutils-2.25/gold/testsuite/ver_test_5.cc @@ -1,6 +1,6 @@ // ver_test_5.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_5.script b/binutils-2.25/gold/testsuite/ver_test_5.script index 028cdd62..950adc84 100644 --- a/binutils-2.25/gold/testsuite/ver_test_5.script +++ b/binutils-2.25/gold/testsuite/ver_test_5.script @@ -1,6 +1,6 @@ ## ver_test_5.script -- a test case for gold -## Copyright 2008 Free Software Foundation, Inc. +## Copyright (C) 2008-2014 Free Software Foundation, Inc. ## Written by Ian Lance Taylor <iant@google.com> ## This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_5.sh b/binutils-2.25/gold/testsuite/ver_test_5.sh index 2eacb455..0c9b0244 100755 --- a/binutils-2.25/gold/testsuite/ver_test_5.sh +++ b/binutils-2.25/gold/testsuite/ver_test_5.sh @@ -2,7 +2,7 @@ # ver_test_5.sh -- test that symbol has correct version -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_6.c b/binutils-2.25/gold/testsuite/ver_test_6.c index 44b483fd..fb96c771 100644 --- a/binutils-2.25/gold/testsuite/ver_test_6.c +++ b/binutils-2.25/gold/testsuite/ver_test_6.c @@ -1,6 +1,6 @@ /* ver_test_6.c -- test common symbol with shared library version - Copyright 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_7.cc b/binutils-2.25/gold/testsuite/ver_test_7.cc index d602a48f..2badceab 100644 --- a/binutils-2.25/gold/testsuite/ver_test_7.cc +++ b/binutils-2.25/gold/testsuite/ver_test_7.cc @@ -1,6 +1,6 @@ // ver_test_7.cc -- test weak duplicate symbol with version -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com> // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_7.sh b/binutils-2.25/gold/testsuite/ver_test_7.sh index 04d35fc9..f0fe8f65 100755 --- a/binutils-2.25/gold/testsuite/ver_test_7.sh +++ b/binutils-2.25/gold/testsuite/ver_test_7.sh @@ -2,7 +2,7 @@ # ver_test_7.sh -- test that symbol has correct version -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_8.script b/binutils-2.25/gold/testsuite/ver_test_8.script index b5bfc3f0..9e48e38f 100644 --- a/binutils-2.25/gold/testsuite/ver_test_8.script +++ b/binutils-2.25/gold/testsuite/ver_test_8.script @@ -1,6 +1,6 @@ ## ver_test_8.script -- a test case for gold -## Copyright 2008 Free Software Foundation, Inc. +## Copyright (C) 2008-2014 Free Software Foundation, Inc. ## Written by Ian Lance Taylor <iant@google.com> ## This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_9.cc b/binutils-2.25/gold/testsuite/ver_test_9.cc index 5d06d4ec..d0cc4e70 100644 --- a/binutils-2.25/gold/testsuite/ver_test_9.cc +++ b/binutils-2.25/gold/testsuite/ver_test_9.cc @@ -1,6 +1,6 @@ // ver_test_9.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_main.cc b/binutils-2.25/gold/testsuite/ver_test_main.cc index f8a7b755..c24beb45 100644 --- a/binutils-2.25/gold/testsuite/ver_test_main.cc +++ b/binutils-2.25/gold/testsuite/ver_test_main.cc @@ -1,6 +1,6 @@ // ver_test_main.cc -- a test case for gold -// Copyright 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2007-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/ver_test_main_2.cc b/binutils-2.25/gold/testsuite/ver_test_main_2.cc index 1599e0f3..9a031913 100644 --- a/binutils-2.25/gold/testsuite/ver_test_main_2.cc +++ b/binutils-2.25/gold/testsuite/ver_test_main_2.cc @@ -1,6 +1,6 @@ // ver_test_main_2.cc -- a test case for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_1.cc b/binutils-2.25/gold/testsuite/weak_alias_test_1.cc index 0ad92657..67c709dd 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_1.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_1.cc @@ -1,6 +1,6 @@ // weak_alias_test_1.cc -- test weak aliases for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_2.cc b/binutils-2.25/gold/testsuite/weak_alias_test_2.cc index 8294525f..5933314c 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_2.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_2.cc @@ -1,6 +1,6 @@ // weak_alias_test_2.cc -- test weak aliases for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_3.cc b/binutils-2.25/gold/testsuite/weak_alias_test_3.cc index 99152e2d..ef7b252d 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_3.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_3.cc @@ -1,6 +1,6 @@ // weak_alias_test_3.cc -- test weak aliases for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_4.cc b/binutils-2.25/gold/testsuite/weak_alias_test_4.cc index 714c6d63..04a00988 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_4.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_4.cc @@ -1,6 +1,6 @@ // weak_alias_test_4.cc -- test weak aliases for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_5.cc b/binutils-2.25/gold/testsuite/weak_alias_test_5.cc index df48092c..c3e746e7 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_5.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_5.cc @@ -1,6 +1,6 @@ // weak_alias_test_5.cc -- test versioned weak aliases for gold -// Copyright 2011 Free Software Foundation, Inc. +// Copyright (C) 2011-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_alias_test_main.cc b/binutils-2.25/gold/testsuite/weak_alias_test_main.cc index e3f86207..1b4778dd 100644 --- a/binutils-2.25/gold/testsuite/weak_alias_test_main.cc +++ b/binutils-2.25/gold/testsuite/weak_alias_test_main.cc @@ -1,6 +1,6 @@ // weak_alias_test_main.cc -- test weak aliases for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_plt.sh b/binutils-2.25/gold/testsuite/weak_plt.sh index 6c419b80..20980112 100755 --- a/binutils-2.25/gold/testsuite/weak_plt.sh +++ b/binutils-2.25/gold/testsuite/weak_plt.sh @@ -2,7 +2,7 @@ # weak_plt.sh -- test calling a weak undefined function. -# Copyright 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # Written by Ian Lance Taylor <iant@google.com>. # This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_plt_main.cc b/binutils-2.25/gold/testsuite/weak_plt_main.cc index 33cb35eb..39fe46f1 100644 --- a/binutils-2.25/gold/testsuite/weak_plt_main.cc +++ b/binutils-2.25/gold/testsuite/weak_plt_main.cc @@ -1,6 +1,6 @@ // weak_plt_main.cc -- test call to weak undefined function for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_plt_shared.cc b/binutils-2.25/gold/testsuite/weak_plt_shared.cc index 8d82005d..0275a2e0 100644 --- a/binutils-2.25/gold/testsuite/weak_plt_shared.cc +++ b/binutils-2.25/gold/testsuite/weak_plt_shared.cc @@ -1,6 +1,6 @@ // weak_plt_shared.cc -- test call to weak undefined function for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_test.cc b/binutils-2.25/gold/testsuite/weak_test.cc index c14a688d..67c44386 100644 --- a/binutils-2.25/gold/testsuite/weak_test.cc +++ b/binutils-2.25/gold/testsuite/weak_test.cc @@ -1,6 +1,6 @@ // weak_test.cc -- test handling of weak symbols for gold -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_undef.h b/binutils-2.25/gold/testsuite/weak_undef.h index 17d5f02e..796dca56 100644 --- a/binutils-2.25/gold/testsuite/weak_undef.h +++ b/binutils-2.25/gold/testsuite/weak_undef.h @@ -1,6 +1,6 @@ // weak_undef.h -- test handling of weak undefined symbols for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_undef_file1.cc b/binutils-2.25/gold/testsuite/weak_undef_file1.cc index fd288704..60cf5c34 100644 --- a/binutils-2.25/gold/testsuite/weak_undef_file1.cc +++ b/binutils-2.25/gold/testsuite/weak_undef_file1.cc @@ -1,6 +1,6 @@ // weak_undef_file1.cc -- test handling of weak undefined symbols for gold -// Copyright 2008, 2010 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_undef_file2.cc b/binutils-2.25/gold/testsuite/weak_undef_file2.cc index 33701b2c..7ceff001 100644 --- a/binutils-2.25/gold/testsuite/weak_undef_file2.cc +++ b/binutils-2.25/gold/testsuite/weak_undef_file2.cc @@ -1,6 +1,6 @@ // weak_undef_file2.cc -- test handling of weak undefined symbols for gold -// Copyright 2008, 2010 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_undef_file3.cc b/binutils-2.25/gold/testsuite/weak_undef_file3.cc new file mode 100644 index 00000000..15974473 --- /dev/null +++ b/binutils-2.25/gold/testsuite/weak_undef_file3.cc @@ -0,0 +1,29 @@ +// weak_undef_file3.cc -- test handling of weak undefined symbols for gold + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// This file tests that we correctly deal with weak undefined symbols +// when searching archive libraries. If we have a weak undefined symbol, +// it should not cause us to link an archive library member that defines +// that symbol. However, if the symbol is also listed in a -u option on +// the command line, it should cause the archive member to be linked. + +int weak_undef_1 = 1; diff --git a/binutils-2.25/gold/testsuite/weak_undef_file4.cc b/binutils-2.25/gold/testsuite/weak_undef_file4.cc new file mode 100644 index 00000000..a82a49ff --- /dev/null +++ b/binutils-2.25/gold/testsuite/weak_undef_file4.cc @@ -0,0 +1,29 @@ +// weak_undef_file4.cc -- test handling of weak undefined symbols for gold + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// This file tests that we correctly deal with weak undefined symbols +// when searching archive libraries. If we have a weak undefined symbol, +// it should not cause us to link an archive library member that defines +// that symbol. However, if the symbol is also listed in a -u option on +// the command line, it should cause the archive member to be linked. + +int weak_undef_2 = 2; diff --git a/binutils-2.25/gold/testsuite/weak_undef_test.cc b/binutils-2.25/gold/testsuite/weak_undef_test.cc index 880d5cdc..16277a24 100644 --- a/binutils-2.25/gold/testsuite/weak_undef_test.cc +++ b/binutils-2.25/gold/testsuite/weak_undef_test.cc @@ -1,6 +1,6 @@ // weak_undef_test.cc -- test handling of weak undefined symbols for gold -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. diff --git a/binutils-2.25/gold/testsuite/weak_undef_test_2.cc b/binutils-2.25/gold/testsuite/weak_undef_test_2.cc new file mode 100644 index 00000000..549bd3fd --- /dev/null +++ b/binutils-2.25/gold/testsuite/weak_undef_test_2.cc @@ -0,0 +1,79 @@ +// weak_undef_test_2.cc -- test handling of weak undefined symbols for gold + +// Copyright (C) 2014 Free Software Foundation, Inc. +// Written by Cary Coutant <ccoutant@google.com>. + +// This file is part of gold. + +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +// MA 02110-1301, USA. + +// This file tests that we correctly deal with weak undefined symbols +// when searching archive libraries. If we have a weak undefined symbol, +// it should not cause us to link an archive library member that defines +// that symbol. However, if the symbol is also listed in a -u option on +// the command line, it should cause the archive member to be linked. + + +#include <cstdio> + +// This symbol is defined in weak_undef_file3.cc, but we should +// not load it from the library. +extern int weak_undef_1 __attribute__ ((weak)); + +// This symbol is defined in weak_undef_file4.cc, but is also +// listed in a -u option on the link command, so we should +// load it from the library. +extern int weak_undef_2 __attribute__ ((weak)); + +int *p1 = &weak_undef_1; + +int *p2 = &weak_undef_2; + +int +main() +{ + int status = 0; + + if (&weak_undef_1 != NULL) + { + fprintf(stderr, "FAILED weak undef test 1: %s\n", + "&weak_undef_1 is not NULL"); + status = 1; + } + + if (&weak_undef_2 == NULL) + { + fprintf(stderr, "FAILED weak undef test 2: %s\n", + "&weak_undef_2 is NULL"); + status = 1; + } + + if (p1 != NULL) + { + fprintf(stderr, "FAILED weak undef test 3: %s\n", + "p1 is not NULL"); + status = 1; + } + + if (p2 == NULL) + { + fprintf(stderr, "FAILED weak undef test 4: %s\n", + "p2 is NULL"); + status = 1; + } + + return status; +} |