diff options
author | Sriraman Tallam <tmsriram@google.com> | 2009-05-22 20:27:52 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2009-05-22 20:27:52 +0000 |
commit | 4daadc0d02d6b55962e561882f4768c0c9699010 (patch) | |
tree | 80a223f79a1ad01da46081cf1933fa53c406f9d2 /gold/testsuite/Makefile.am | |
parent | 531813adfc6b4fd3d27183f8be16e755e8fc003d (diff) | |
download | gdb-4daadc0d02d6b55962e561882f4768c0c9699010.zip gdb-4daadc0d02d6b55962e561882f4768c0c9699010.tar.gz gdb-4daadc0d02d6b55962e561882f4768c0c9699010.tar.bz2 |
* testsuite/Makefile.am: Add -ffunction-sections to compile
gc_comdat_test files. Add -Wl,--gc-sections to build
gc_comdat_test.
* testsuite/Makefile.in: Regenerate.
* testsuite/gc_comdat_test.sh: Fix the condition around grep.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r-- | gold/testsuite/Makefile.am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 7668073..aeee0a6 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -107,11 +107,11 @@ flagstest_ndebug.o: constructor_test.cc check_SCRIPTS += gc_comdat_test.sh check_DATA += gc_comdat_test.stdout gc_comdat_test_1.o: gc_comdat_test_1.cc - $(CXXCOMPILE) -O0 -c -g -o $@ $< + $(CXXCOMPILE) -O0 -c -ffunction-sections -g -o $@ $< gc_comdat_test_2.o: gc_comdat_test_2.cc - $(CXXCOMPILE) -O0 -c -g -o $@ $< + $(CXXCOMPILE) -O0 -c -ffunction-sections -g -o $@ $< gc_comdat_test: gc_comdat_test_1.o gc_comdat_test_2.o gcctestdir/ld - $(CXXLINK) -Bgcctestdir/ --gc-sections gc_comdat_test_1.o gc_comdat_test_2.o + $(CXXLINK) -Bgcctestdir/ -Wl,--gc-sections gc_comdat_test_1.o gc_comdat_test_2.o gc_comdat_test.stdout: gc_comdat_test $(TEST_NM) -C gc_comdat_test > gc_comdat_test.stdout |