From 050ea8caa154c430d94cd0b68873c4387c550c94 Mon Sep 17 00:00:00 2001 From: Kevin Diaz Date: Sat, 3 Oct 2020 01:44:37 -0400 Subject: [PATCH] Default nasm/asm to 32 bit binaries --- lxc/executors/nasm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxc/executors/nasm b/lxc/executors/nasm index df35c10..60c4963 100755 --- a/lxc/executors/nasm +++ b/lxc/executors/nasm @@ -1,4 +1,4 @@ cd /tmp/$2 -timeout -s KILL 10 nasm -f elf64 -o binary.o code.code -timeout -s KILL 10 ld binary.o -o binary +timeout -s KILL 10 nasm -f elf32 -o binary.o code.code +timeout -s KILL 10 ld -m elf_i386 binary.o -o binary runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"