M2libc with standard architecture naming

Every AArch64 test script is affected because AArch64 -> aarch64. test0101
needs i386 -> x86 because it verifies the resulting AArch64 binary (hex2)
creating some x86 proof.

Also, a couple of x86 tests (test0000 and test0025) that are M2libc aware,
again because i386 -> x86 (hex2 ELF parts).
This commit is contained in:
deesix 2021-01-16 00:00:00 +01:00
parent bcd0f49859
commit e9553d5f13
36 changed files with 165 additions and 165 deletions

2
M2libc

@ -1 +1 @@
Subproject commit a7e67ac73146e9812bc7892c5d6101852f906c3f
Subproject commit 1c79ea9550e0e988c45d74cdf2c258063d3cf82a

View File

@ -30,8 +30,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-core.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--LittleEndian \
--architecture aarch64 \
@ -40,7 +40,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/return.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -40,7 +40,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/x86/ELF-i386.hex2 \
-f M2libc/x86/ELF-x86.hex2 \
-f ${TMPDIR}/return.hex2 \
--LittleEndian \
--architecture x86 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0001/library_call.c \
-o ${TMPDIR}/library_call.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/library_call.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/library_call.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0002/if.c \
-o ${TMPDIR}/if.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/if.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/if.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0003/constant.c \
-o ${TMPDIR}/constant.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/constant.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/constant.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0004/call.c \
-o ${TMPDIR}/call.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/call.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/call.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0005/string.c \
-o ${TMPDIR}/string.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/string.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/string.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0006/for.c \
-o ${TMPDIR}/for.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/for.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/for.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0007/do.c \
--debug \
@ -44,8 +44,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/do.M1 \
-f ${TMPDIR}/do-footer.M1 \
--LittleEndian \
@ -55,7 +55,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/do.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0008/struct.c \
--debug \
@ -43,8 +43,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
-f ${TMPDIR}/struct-footer.M1 \
--LittleEndian \
@ -54,7 +54,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/struct.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0009/goto.c \
-o ${TMPDIR}/goto.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/goto.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/goto.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0010/nested_struct.c \
-o ${TMPDIR}/nested_struct.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/nested_struct.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/nested_struct.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0011/break-do.c \
-o ${TMPDIR}/break-do.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/break-do.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/break-do.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0012/break-for.c \
-o ${TMPDIR}/break-for.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/break-for.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/break-for.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0013/break-while.c \
-o ${TMPDIR}/break-while.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/break-while.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/break-while.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0014/basic_args.c \
-o ${TMPDIR}/basic_args.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/basic_args.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/basic_args.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0015/file_read.c \
-o ${TMPDIR}/file_read.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/file_read.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/file_read.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0016/file_write.c \
-o ${TMPDIR}/file_write.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/file_write.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/file_write.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0017/memset.c \
-o ${TMPDIR}/memset.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/memset.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/memset.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0018/math.c \
-o ${TMPDIR}/math.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/math.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/math.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/match.c \
-f functions/in_set.c \
@ -38,8 +38,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/getopt.M1 \
--LittleEndian \
--architecture aarch64 \
@ -48,7 +48,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/getopt.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0020/struct.c \
-o ${TMPDIR}/struct.M1 \
@ -34,8 +34,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
--LittleEndian \
--architecture aarch64 \
@ -44,7 +44,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/struct.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/match.c \
-f functions/file_print.c \
@ -45,8 +45,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/chdir.M1 \
-f ${TMPDIR}/chdir-footer.M1 \
--LittleEndian \
@ -56,7 +56,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/chdir.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/in_set.c \
-f functions/numerate_number.c \
@ -46,8 +46,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/continue.M1 \
-f ${TMPDIR}/continue-footer.M1 \
--LittleEndian \
@ -57,7 +57,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/continue.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0023/fseek.c \
--debug \
@ -43,8 +43,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/fseek.M1 \
-f ${TMPDIR}/fseek-footer.M1 \
--LittleEndian \
@ -54,7 +54,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/fseek.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -30,8 +30,8 @@ bin/M2-Planet \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-core.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--LittleEndian \
--architecture aarch64 \
@ -40,7 +40,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/return.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0025/array.c \
--debug \
@ -43,8 +43,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/array.M1 \
-f ${TMPDIR}/array-footer.M1 \
--LittleEndian \
@ -54,7 +54,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/array.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -54,7 +54,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/x86/ELF-i386-debug.hex2 \
-f M2libc/x86/ELF-x86-debug.hex2 \
-f ${TMPDIR}/array.hex2 \
--LittleEndian \
--architecture x86 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/file_print.c \
-f functions/match.c \
@ -45,8 +45,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/blood-elf.M1 \
-f ${TMPDIR}/blood-elf-footer.M1 \
--LittleEndian \
@ -56,7 +56,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64.hex2 \
-f M2libc/aarch64/ELF-aarch64.hex2 \
-f ${TMPDIR}/blood-elf.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/file_print.c \
-f functions/match.c \
@ -47,8 +47,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/hex2_linker.M1 \
-f ${TMPDIR}/hex2_linker-footer.M1 \
--LittleEndian \
@ -58,7 +58,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/hex2_linker.hex2 \
--LittleEndian \
--architecture aarch64 \
@ -78,7 +78,7 @@ then
. ./sha256.sh
# Verify that the resulting file works
./test/results/test0101-aarch64-binary \
-f M2libc/x86/ELF-i386.hex2\
-f M2libc/x86/ELF-x86.hex2 \
-f test/test0101/test.hex2 \
--LittleEndian \
--architecture x86 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/file_print.c \
-f functions/match.c \
@ -49,8 +49,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/M1-macro.M1 \
-f ${TMPDIR}/M1-macro-footer.M1 \
--LittleEndian \
@ -60,7 +60,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/M1-macro.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/file_print.c \
-f functions/match.c \
@ -45,8 +45,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/get_machine.M1 \
-f ${TMPDIR}/get_machine-footer.M1 \
--LittleEndian \
@ -56,7 +56,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/get_machine.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f functions/file_print.c \
-f functions/match.c \
@ -47,8 +47,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/kaem.M1 \
-f ${TMPDIR}/kaem-footer.M1 \
--LittleEndian \
@ -58,7 +58,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/kaem.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
./bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0105/lisp.h \
-f functions/in_set.c \
@ -52,8 +52,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/lisp.M1 \
-f ${TMPDIR}/lisp-footer.M1 \
--LittleEndian \
@ -63,7 +63,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/lisp.hex2 \
--LittleEndian \
--architecture aarch64 \

View File

@ -24,9 +24,9 @@ mkdir -p ${TMPDIR}
# Build the test
bin/M2-Planet \
--architecture aarch64 \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/aarch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/aarch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0106/cc500.c \
--debug \
@ -42,8 +42,8 @@ blood-elf \
# Macro assemble with libc written in M1-Macro
M1 \
-f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f M2libc/aarch64/aarch64_defs.M1 \
-f M2libc/aarch64/libc-full.M1 \
-f ${TMPDIR}/cc0.M1 \
-f ${TMPDIR}/cc0-footer.M1 \
--LittleEndian \
@ -53,7 +53,7 @@ M1 \
# Resolve all linkages
hex2 \
-f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f M2libc/aarch64/ELF-aarch64-debug.hex2 \
-f ${TMPDIR}/cc0.hex2 \
--LittleEndian \
--architecture aarch64 \