Assemble tests in 32-bit mode rather than 64-bit mode. Shouldn't hurt anything, but will allow for proper 32-bit relocations.
This commit is contained in:
4
xb.bat
4
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user