Skip to content

Instantly share code, notes, and snippets.

@vitaly-la
vitaly-la / helloworld.s
Created June 9, 2026 12:25
Hello World in GNU Assembly (OpenBSD 7.9, x86-64)
# cc -nostdlib -no-pie -static helloworld.s -o helloworld && strip helloworld
.section .rodata
msg:
.ascii "hello, world\n"
len = . - msg
.text
.globl _start