Create nasm64 executor and test file

This commit is contained in:
Kevin Diaz 2020-10-03 13:16:15 -04:00
parent 9ffca9abb1
commit 0253f24479
No known key found for this signature in database
GPG key ID: E62816A9BB674F94
2 changed files with 22 additions and 0 deletions

4
lxc/executors/nasm64 Executable file
View file

@ -0,0 +1,4 @@
cd /tmp/$2
timeout -s KILL 10 nasm -f elf64 -o binary.o code.code
timeout -s KILL 10 ld -m elf_x86_64 binary.o -o binary
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"