Skip to content

Working with the mach kernel + x86-64 architecture assembly

License

Notifications You must be signed in to change notification settings

earaujoassis/machos-assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published