diff --git a/makefile b/makefile new file mode 100644 index 0000000..d4d01bb --- /dev/null +++ b/makefile @@ -0,0 +1,7 @@ +NAME = analyze + +$(NAME): analyze.o + ld $^ -o $@ +analyze.o: start.s + nasm -f elf64 start.s -o $@ + diff --git a/start.s b/start.s new file mode 100644 index 0000000..b888cee --- /dev/null +++ b/start.s @@ -0,0 +1,7 @@ +default rel +BITS 64 +section .text +global _start + +_start: + mov rax, 1