@@@ tests: source new test/env.inc.sh

... which sets, given the ARCH, the following vars:

 BASE_ADDRESS
 ENDIANNESS_FLAG
This commit is contained in:
deesix 2021-01-31 00:00:00 +01:00
parent ab055a8823
commit fb5bae96ab
133 changed files with 572 additions and 400 deletions

40
test/env.inc.sh Normal file
View File

@ -0,0 +1,40 @@
## Copyright (C) 2021 deesix <deesix@tuta.io>
## This file is part of M2-Planet.
##
## M2-Planet is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## M2-Planet is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
# To be sourced from test scripts, with ARCH already set.
case "${ARCH}" in
aarch64)
BASE_ADDRESS="0x00400000"
ENDIANNESS_FLAG="--little-endian"
;;
amd64)
BASE_ADDRESS="0x00600000"
ENDIANNESS_FLAG="--little-endian"
;;
armv7l)
BASE_ADDRESS="0x00010000"
ENDIANNESS_FLAG="--little-endian"
;;
x86)
BASE_ADDRESS="0x08048000"
ENDIANNESS_FLAG="--little-endian"
;;
*)
echo "$0: Unknown architecture (${ARCH})."
exit 77
;;
esac

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0000/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0000-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0000/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0000-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0000/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0000-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0000/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0000-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0001/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/library_call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/library_call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/library_call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0001-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0001/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/library_call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/library_call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/library_call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0001-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0001/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/library_call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/library_call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/library_call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0001-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0001/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/library_call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/library_call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/library_call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0001-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0002/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/if.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/if.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/if.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0002-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0002/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/if.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/if.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/if.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0002-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0002/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/if.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/if.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/if.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0002-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0002/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/if.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/if.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/if.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0002-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0003/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/constant.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/constant.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/constant.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0003-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0003/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/constant.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/constant.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/constant.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0003-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0003/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/constant.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/constant.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/constant.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0003-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0003/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/constant.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/constant.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/constant.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0003-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0004/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0004-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0004/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0004-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0004/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0004-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0004/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/call.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/call.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/call.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0004-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0005/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/string.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/string.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/string.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0005-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0005/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/string.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/string.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/string.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0005-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0005/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/string.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/string.hex2 \
|| exit 3
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/string.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0005-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0005/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/string.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/string.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/string.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0005-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0006/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0006-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0006/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0006-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0006/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0006-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0006/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0006-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0007/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0007-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0007/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0007-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0007/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0007-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0007/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0007-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0008/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -49,7 +50,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
-f ${TMPDIR}/struct-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -58,9 +59,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0008-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0008/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -49,7 +50,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
-f ${TMPDIR}/struct-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -58,9 +59,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0008-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0008/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -48,7 +49,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
-f ${TMPDIR}/struct-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -57,9 +58,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0008-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0008/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -48,7 +49,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
-f ${TMPDIR}/struct-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -57,9 +58,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0008-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0009/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/goto.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/goto.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/goto.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0009-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0009/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/goto.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/goto.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/goto.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0009-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0009/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/goto.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/goto.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/goto.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0009-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0009/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/goto.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/goto.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/goto.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0009-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0010/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/nested_struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/nested_struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/nested_struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0010-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0010/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/nested_struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/nested_struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/nested_struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0010-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0010/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/nested_struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/nested_struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/nested_struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0010-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0010/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/nested_struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/nested_struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/nested_struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0010-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0011/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0011-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0011/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0011-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0011/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0011-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0011/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-do.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-do.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-do.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0011-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0012/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0012-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0012/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0012-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0012/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0012-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0012/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-for.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-for.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-for.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0012-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0013/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-while.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-while.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-while.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0013-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0013/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-while.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-while.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-while.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0013-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0013/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-while.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-while.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-while.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0013-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0013/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/break-while.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/break-while.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/break-while.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0013-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0014/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/basic_args.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/basic_args.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/basic_args.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0014-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0014/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/basic_args.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/basic_args.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/basic_args.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0014-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0014/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/basic_args.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/basic_args.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/basic_args.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0014-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0014/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/basic_args.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/basic_args.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/basic_args.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0014-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0015/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_read.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_read.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_read.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0015-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0015/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_read.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_read.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_read.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0015-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0015/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_read.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_read.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_read.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0015-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0015/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_read.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_read.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_read.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0015-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0016/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_write.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_write.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_write.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0016-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0016/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_write.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_write.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_write.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0016-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0016/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_write.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_write.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_write.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0016-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0016/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/file_write.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/file_write.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/file_write.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0016-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0017/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/memset.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/memset.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/memset.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0017-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0017/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/memset.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/memset.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/memset.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0017-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0017/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/memset.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/memset.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/memset.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0017-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0017/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/memset.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/memset.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/memset.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0017-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0018/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/math.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/math.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/math.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0018-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0018/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/math.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/math.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/math.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0018-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0018/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/math.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/math.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/math.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0018-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0018/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/math.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/math.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/math.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0018-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0019/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -43,7 +44,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/getopt.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/getopt.hex2 \
|| exit 2
@ -52,9 +53,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/getopt.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0019-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0019/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -43,7 +44,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/getopt.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/getopt.hex2 \
|| exit 2
@ -52,9 +53,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/getopt.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0019-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0019/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -43,7 +44,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/getopt.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/getopt.hex2 \
|| exit 2
@ -52,9 +53,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/getopt.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0019-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -ex
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0019/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -43,7 +44,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/getopt.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/getopt.hex2 \
|| exit 2
@ -52,9 +53,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/getopt.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0019-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0020/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0020-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0020/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0020-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0020/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0020-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0020/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -39,7 +40,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/struct.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/struct.hex2 \
|| exit 2
@ -48,9 +49,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/struct.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0020-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0021/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -51,7 +52,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/chdir.M1 \
-f ${TMPDIR}/chdir-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/chdir.hex2 \
|| exit 3
@ -60,9 +61,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/chdir.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0021-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0021/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -51,7 +52,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/chdir.M1 \
-f ${TMPDIR}/chdir-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/chdir.hex2 \
|| exit 3
@ -60,9 +61,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/chdir.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0021-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0021/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -50,7 +51,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/chdir.M1 \
-f ${TMPDIR}/chdir-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/chdir.hex2 \
|| exit 3
@ -59,9 +60,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/chdir.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0021-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0021/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -50,7 +51,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/chdir.M1 \
-f ${TMPDIR}/chdir-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/chdir.hex2 \
|| exit 3
@ -59,9 +60,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/chdir.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0021-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0022/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -52,7 +53,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/continue.M1 \
-f ${TMPDIR}/continue-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/continue.hex2 \
|| exit 3
@ -61,9 +62,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/continue.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0022-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0022/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -52,7 +53,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/continue.M1 \
-f ${TMPDIR}/continue-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/continue.hex2 \
|| exit 3
@ -61,9 +62,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/continue.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0022-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0022/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -51,7 +52,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/continue.M1 \
-f ${TMPDIR}/continue-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/continue.hex2 \
|| exit 3
@ -60,9 +61,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/continue.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0022-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0022/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -51,7 +52,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/continue.M1 \
-f ${TMPDIR}/continue-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/continue.hex2 \
|| exit 3
@ -60,9 +61,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/continue.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0022-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0023/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -49,7 +50,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/fseek.M1 \
-f ${TMPDIR}/fseek-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/fseek.hex2 \
|| exit 3
@ -58,9 +59,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/fseek.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0023-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0023/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -49,7 +50,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/fseek.M1 \
-f ${TMPDIR}/fseek-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/fseek.hex2 \
|| exit 3
@ -58,9 +59,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/fseek.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0023-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0023/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -48,7 +49,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/fseek.M1 \
-f ${TMPDIR}/fseek-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/fseek.hex2 \
|| exit 3
@ -57,9 +58,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/fseek.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0023-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="x86"
. test/env.inc.sh
TMPDIR="test/test0023/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -48,7 +49,7 @@ M1 \
-f M2libc/${ARCH}/libc-full.M1 \
-f ${TMPDIR}/fseek.M1 \
-f ${TMPDIR}/fseek-footer.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/fseek.hex2 \
|| exit 3
@ -57,9 +58,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}-debug.hex2 \
-f ${TMPDIR}/fseek.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x8048000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0023-${ARCH}-binary \
|| exit 4

View File

@ -19,6 +19,7 @@
set -x
ARCH="aarch64"
. test/env.inc.sh
TMPDIR="test/test0024/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x400000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0024-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="amd64"
. test/env.inc.sh
TMPDIR="test/test0024/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x00600000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0024-${ARCH}-binary \
|| exit 3

View File

@ -19,6 +19,7 @@
set -x
ARCH="armv7l"
. test/env.inc.sh
TMPDIR="test/test0024/tmp-${ARCH}"
mkdir -p ${TMPDIR}
@ -35,7 +36,7 @@ M1 \
-f M2libc/${ARCH}/${ARCH}_defs.M1 \
-f M2libc/${ARCH}/libc-core.M1 \
-f ${TMPDIR}/return.M1 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
-o ${TMPDIR}/return.hex2 \
|| exit 2
@ -44,9 +45,9 @@ M1 \
hex2 \
-f M2libc/${ARCH}/ELF-${ARCH}.hex2 \
-f ${TMPDIR}/return.hex2 \
--little-endian \
${ENDIANNESS_FLAG} \
--architecture ${ARCH} \
--base-address 0x10000 \
--base-address ${BASE_ADDRESS} \
-o test/results/test0024-${ARCH}-binary \
|| exit 3

Some files were not shown because too many files have changed in this diff Show More