Skip to content

Instantly share code, notes, and snippets.

View berkgoksel's full-sized avatar
🎯
Open to new ideas.

Berk Cem Göksel berkgoksel

🎯
Open to new ideas.
View GitHub Profile
@yellowbyte
yellowbyte / compiling_asm.md
Last active March 8, 2024 21:44
how to assemble assembly with NASM assembler to 32-bit or 64-bit ELF binary with or without libc

32-bit ELF binary

how to assemble and link:

nasm -f elf32 -o <filename>.o <filename>.asm
ld -m elf_i386 -o <filename> <filename>.o

template code (hello world):

section .text
global _start