Port AArch64 test0008 to M2libc

This commit is contained in:
Sanne Wouda 2021-01-10 17:35:16 +00:00
parent bb3b4eebd8
commit dd1f5db9f1
2 changed files with 17 additions and 10 deletions

View File

@ -46,12 +46,12 @@ a7d52ec3d68f759f163a894b798a453072fc8e529dada7c373cce4d2a812a895 test/results/t
dc543f40901704ce9f352308c7759c8b581395f8683cfa248a03410dc3dc24bd test/results/test0007-knight-native-binary
3095d9a11eddbc875f13051825eef622cfc08fe1f93963c00c32af155982f480 test/results/test0007-knight-posix-binary
fede201188d1b997e7c0bace34ff09cfe0d1cd4c718f0a15adaa5956264a15b1 test/results/test0007-x86-binary
d6a4c229f38cd1a838ca9a2353fa705bd87ecd493aee2bfbdfd59bb92cf4bada test/results/test0008-aarch64-binary
6eb584f876bacfc4a7df31f6a800a7675eab1c8dad86b0ab036b92f8bcf479a6 test/results/test0008-amd64-binary
59ecce124b6a418873f171aa8a29e6bb618aebda8e11cabcbf583900ac2ac351 test/results/test0008-aarch64-binary
d301563bdc021597d5f82ef01c73e6340e0c92b27aef6c1a9f07b894478a47c2 test/results/test0008-amd64-binary
371e2c7b12829e9081c720eea917dc78c039996b7881f799882c59c89eb22cdd test/results/test0008-armv7l-binary
b54dd7a53e4e7619e7fe1761b827cfdf0c24b2317084ec7c06a7403c5d51c651 test/results/test0008-knight-native-binary
3ea254522d01978f53a5ce8f88f145afdc1fec447bfc5e3ffc3057ab6968a07b test/results/test0008-knight-posix-binary
469ffa6eb87391a6d1617ac8a273d0ba58e62a6e9741d97e4ebc6444b23cff6d test/results/test0008-x86-binary
64db683be65a345cc6aaad7420c95f64f77e5cd8ccd204241761fa8701714617 test/results/test0008-x86-binary
d595865be0821679a9885e897fa57ffe8d559a0750113930e6466985f907dd53 test/results/test0009-aarch64-binary
5de426db9e0cc0943563a5f2464010b1aa27d4b72677945dd237fc3311691906 test/results/test0009-amd64-binary
5f037d86c6e0c352579ce223157963090fe56a72bf65467508f36fd3dd5bd7b2 test/results/test0009-armv7l-binary

View File

@ -19,23 +19,30 @@
set -x
# Build the test
bin/M2-Planet --architecture aarch64 \
-f test/common_aarch64/functions/putchar.c \
-f test/common_aarch64/functions/exit.c \
-f test/common_aarch64/functions/malloc.c \
-f M2libc/AArch64/Linux/unistd.h \
-f M2libc/stdlib.c \
-f M2libc/AArch64/Linux/fcntl.h \
-f M2libc/stdio.c \
-f test/test0008/struct.c \
--bootstrap-mode \
--debug \
-o test/test0008/struct.M1 || exit 1
# Build debug footer
blood-elf --64 -f test/test0008/struct.M1 \
--entry _start \
-o test/test0008/struct-footer.M1 || exit 2
# Macro assemble with libc written in M1-Macro
M1 -f test/common_aarch64/aarch64_defs.M1 \
-f test/common_aarch64/libc-core.M1 \
M1 -f M2libc/AArch64/aarch64_defs.M1 \
-f M2libc/AArch64/libc-full.M1 \
-f test/test0008/struct.M1 \
-f test/test0008/struct-footer.M1 \
--LittleEndian \
--architecture aarch64 \
-o test/test0008/struct.hex2 || exit 2
# Resolve all linkages
hex2 -f test/common_aarch64/ELF-aarch64.hex2 \
hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \
-f test/test0008/struct.hex2 \
--LittleEndian \
--architecture aarch64 \