Skip to main content
hyperlink corrected.
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k

EDIT: Link to elf-hello-world corrected
EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

EDIT: Link to elf-hello-world corrected
EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

EDIT: Link to elf-hello-world corrected
EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

EDIT: Link to elf-hello-world corrected
EDIT: I have moved this answer to the duplicate: https://stackoverflow.com/a/33690144/895245

NASM's default output format is -f bin. Possibly it was different in the past, but now this requires -f elf64.
Source Link
Peter Cordes
  • 377k
  • 50
  • 742
  • 1k
nasm -ofelf64 hello_world.oasm  # creates hello_world.asmo ld -o hello_world.out hello_world.o # static ELF executable with no libraries 
nasm -o hello_world.o hello_world.asm ld -o hello_world.out hello_world.o 
nasm -felf64 hello_world.asm  # creates hello_world.o ld -o hello_world.out hello_world.o # static ELF executable with no libraries 
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
Loading
deleted 244 characters in body
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
added 99 characters in body
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
Fix the meaning of S...
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
deleted 5 characters in body
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
added 127 characters in body
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
Little endian!
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
Imporve S + A
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
deleted 58 characters in body
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading
Source Link
Ciro Santilli OurBigBook.com
  • 392.6k
  • 120
  • 1.3k
  • 1.1k
Loading