19 lines
515 B
Markdown
19 lines
515 B
Markdown
# Build steps
|
|
|
|
## Assembling
|
|
Assembling with NASM
|
|
```bash
|
|
nasm -g -f elf64 <file.asm>
|
|
```
|
|
- g = include debug info
|
|
- f = file format (elf64 -> x64)
|
|
|
|
## Linking
|
|
```bash
|
|
ld <object-files> -o <executable-name> # Default
|
|
gcc <object-files> -o <executable-name> # When using C library functions
|
|
```
|
|
|
|
Based upon the work of [Carmo M de F Barbosa](https://gitlab.com/mcmfb/intro_x86-64)
|
|
|
|
The Linux system call table and useful links can be found [here](http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/). |