diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 14:47:40 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 14:47:40 +0000 |
commit | 74ea3ddf1053c35f205b0a2b3d15678c357c4964 (patch) | |
tree | 6d64e5f9026bf2bf6cca4d2dfb32d28a4f6b8ec2 /src/c_bsdsetsid.S | |
parent | First check-in (diff) | |
download | bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.gz bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.bz2 bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.xz bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.zst bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.zip |
This is the beginning
FossilOrigin-Name: 6db238a60f5173c98996ae2a135f762a21fdce4f
Diffstat (limited to 'src/c_bsdsetsid.S')
-rw-r--r-- | src/c_bsdsetsid.S | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S new file mode 100644 index 0000000..abf5afb --- /dev/null +++ b/src/c_bsdsetsid.S @@ -0,0 +1,16 @@ +.data +str: + .asciz "a string\n" + +.text +.extern u_write +.globl _start + +_start: + movq $0x1, %rdi + leaq str, %rsi + movq $0x9, %rdx + callq u_write + movq $0x1, %rax + xorq %rdi, %rdi + syscall |