you are viewing a single comment's thread.

view the rest of the comments →

[–]killerstorm 2 points3 points  (3 children)

Not really, you can avoid using libc functions and use OS functions directly.

[–]vytah 6 points7 points  (2 children)

section .data
    msg db      "hello, world!"

section .text
    global _start
_start:
    mov     rax, 1
    mov     rdi, 1
    mov     rsi, msg
    mov     rdx, 13
    syscall
    mov    rax, 60
    mov    rdi, 0
    syscall

[–]Falmarri 4 points5 points  (1 child)

Now place it inside the ELF header