This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][gold] Fix test in 64 bits


Forgot to attach.

Cheers,
-- 
Rafael Ãvila de EspÃndola
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 161b86a..6125207 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -1784,7 +1784,7 @@ check_SCRIPTS += memory_test.sh
 check_DATA += memory_test.stdout
 MOSTLYCLEANFILES += memory_test.stdout memory_test memory_test.o
 memory_test: memory_test.s
-	$(COMPILE) -c $< -o memory_test.o
+	$(COMPILE) -m32 -c $< -o memory_test.o
 	$(LINK) -Bgcctestdir/ -nostartfiles -nostdlib -T $(srcdir)/memory_test.t -o $@ memory_test.o
 memory_test.stdout: memory_test
 	$(TEST_READELF) -lS  $< > $@
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
index 09dc84a..fc860d7 100644
--- a/gold/testsuite/Makefile.in
+++ b/gold/testsuite/Makefile.in
@@ -4484,7 +4484,7 @@ uninstall-am:
 @GCC_TRUE@@NATIVE_LINKER_TRUE@libstart_lib_test.a: start_lib_test_1.o
 @GCC_TRUE@@NATIVE_LINKER_TRUE@	$(TEST_AR) rc $@ $^
 @GCC_TRUE@@NATIVE_LINKER_TRUE@memory_test: memory_test.s
-@GCC_TRUE@@NATIVE_LINKER_TRUE@	$(COMPILE) -c $< -o memory_test.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@	$(COMPILE) -m32 -c $< -o memory_test.o
 @GCC_TRUE@@NATIVE_LINKER_TRUE@	$(LINK) -Bgcctestdir/ -nostartfiles -nostdlib -T $(srcdir)/memory_test.t -o $@ memory_test.o
 @GCC_TRUE@@NATIVE_LINKER_TRUE@memory_test.stdout: memory_test
 @GCC_TRUE@@NATIVE_LINKER_TRUE@	$(TEST_READELF) -lS  $< > $@

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]