From d041312315abfdf20fc36c8889c8156e2d4000cb Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 7 Dec 2025 12:09:29 +0100 Subject: [PATCH] architecture name translation fixed in create_asm.sh --- tools/create_asm.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/create_asm.sh b/tools/create_asm.sh index 3cbbd81..b939fb8 100644 --- a/tools/create_asm.sh +++ b/tools/create_asm.sh @@ -14,10 +14,20 @@ objdump -d -x src/copapy/obj/stencils_${arch}_O3.o > build/runner/stencils.asm python3 tools/make_example.py build/runner/coparun build/runner/test.copapy build/runner/test.copapy.bin -if [ $(arch) = 'x86-64' ]; then +if [ $(arch) = 'x86_64' ]; then arch="i386:x86-64" +elif [ $(arch) = 'x86' ]; then + arch="i386" +elif [ $(arch) = 'arm64' ]; then + arch="aarch64" +elif [ $(arch) = 'armv6' ]; then + arch="arm" +elif [ $(arch) = 'armv7' ]; then + arch="arm" fi +echo "Archtitecture: '$arch'" + objdump -D -b binary -m $arch --adjust-vma=0x10000 build/runner/test.copapy.bin > build/runner/example.asm rm build/runner/test.copapy.bin