Skip to content

Instantly share code, notes, and snippets.

View febnug's full-sized avatar
🥴
Drunk

Febriyanto Nugroho febnug

🥴
Drunk
View GitHub Profile
@febnug
febnug / compiling_asm.md
Created October 26, 2019 11:29 — forked from yellowbyte/compiling_asm.md
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