Skip to content

Ttibsi/elf-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elf-maker

An attempt at generating an ELF binary from scratch that prints hello world. This is so I can learn about how an elf file actually works, and a little about ARM64 assembly.

This has only been tested on a raspberry pi 4 with an ARMv8 instruction set

How to use

This repo is built using D, and is also my first experimentation with D as a language. Taking the nob.h approach, you will first need to compile the build.d file with:

$ gdc build.d -o build

and then by just running ./build, the repo will build. t is the name of the binary file generated, executing that should result in hello world!\n displayed on your screen.

$ ./build
$ ./elf_maker
$ ./t

Why?

Because it really isn't easy to get dub and rdmd/dmd working on aarch64, with no provided binaries.

See elf_notes.md for everything I've learned about ELF files and whatt else I could recommend

About

Creating an ELF file by the byte!

Resources

Stars

Watchers

Forks

Languages