earaujoassis / machos-assembly

Working with the mach kernel + x86-64 architecture assembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

machos kernel + x86-64 architecture assembly

Working with the mach kernel + x86-64 architecture assembly

The main purpose of this project is to study the mach kernel and the Mach-O Executable, alongside the System V Application Binary Interface (ABI). There's alreay an example on how to perform a SYS_write + SYS_exit calls for the mach kernel at src/write_syscall.asm.

The code is written using the Netwide Assembler (NASM) format.

Building steps

$ nasm -f macho64 src/write_syscall.asm
$ ld -macosx_version_min 10.15.0 -lSystem -no_pie -o bin/hello_world src/write_syscall.o
$ bin/hello_world

References

License

MIT License © Ewerton Carlos Assis

About

Working with the mach kernel + x86-64 architecture assembly

License:MIT License


Languages

Language:Assembly 100.0%