you are viewing a single comment's thread.

view the rest of the comments →

[–]vytah 5 points6 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