From 336658159ab752775c127667d4227fab9a90e308 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 7 Jun 2015 06:46:24 -0500 Subject: [PATCH] Assemble tests in 32-bit mode rather than 64-bit mode. Shouldn't hurt anything, but will allow for proper 32-bit relocations. --- xb.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xb.bat b/xb.bat index fd3ae32ae..683be495d 100644 --- a/xb.bat +++ b/xb.bat @@ -323,7 +323,7 @@ FOR %%G in (*.s) DO ( SET SRC_FILE=%TEST_SRC%/%%G SET SRC_NAME=%%~nG SET OBJ_FILE=%TEST_BIN%/!SRC_NAME!.o - CMD /c %PPC_AS% -a64 -be -mregnames -mpower7 -maltivec -mvsx -mvmx128 -R -o !OBJ_FILE! !SRC_FILE! 2>&1 + CMD /c %PPC_AS% -a32 -be -mregnames -mpower7 -maltivec -mvsx -mvmx128 -R -o !OBJ_FILE! !SRC_FILE! 2>&1 IF !ERRORLEVEL! NEQ 0 ( SET ANY_ERRORS=1 ) @@ -334,7 +334,7 @@ FOR %%G in (*.s) DO ( REM Eat the first 4 lines to kill the file path that'll differ across machines. MORE +4 %TEST_BIN_WIN%\!SRC_NAME!.dis.tmp > %TEST_BIN_WIN%\!SRC_NAME!.dis DEL %TEST_BIN_WIN%\!SRC_NAME!.dis.tmp - %PPC_LD% -A powerpc:common64 -melf64ppc -EB -nostdlib --oformat binary -Ttext 0x80000000 -e 0x80000000 -o %TEST_BIN%/!SRC_NAME!.bin !OBJ_FILE! + %PPC_LD% -A powerpc:common32 -melf32ppc -EB -nostdlib --oformat binary -Ttext 0x80000000 -e 0x80000000 -o %TEST_BIN%/!SRC_NAME!.bin !OBJ_FILE! IF !ERRORLEVEL! NEQ 0 ( SET ANY_ERRORS=1 )