1
0
Fork 0

netbsd_amd64 optimized true(1)

This commit is contained in:
dtb 2022-10-21 21:10:30 -04:00
parent 8676e44caa
commit 84e9d5ab22
2 changed files with 15 additions and 0 deletions

8
true/netbsd_amd64.mk Normal file
View File

@ -0,0 +1,8 @@
true: true.amd64.netbsd.s
as -o true.amd64.netbsd.o true.amd64.netbsd.s
ld -o true true.amd64.netbsd.o /usr/lib/sysident.o
clean:
rm -f true.amd64.netbsd.o true
.PHONY: clean

7
true/true.amd64.netbsd.s Normal file
View File

@ -0,0 +1,7 @@
.section ".note.netbsd.ident", "a"
.global _start
.text
_start:
mov $1, %rax
mov $0, %rdi
syscall