2014-04-25 12:29:12 +02:00
|
|
|
Minimal elf support
|
|
|
|
===================
|
|
|
|
|
2014-08-28 21:32:53 +02:00
|
|
|
This is really minimal and works only for our current use case
|
|
|
|
|
2014-04-25 12:29:12 +02:00
|
|
|
- no external functions (all syscalls)
|
|
|
|
- only position independant code (no relocation)
|
|
|
|
- embedded data (into text), no data section
|
|
|
|
|
|
|
|
I was close to going the wilson way, ie assmble, load into memory and jump
|
|
|
|
|
|
|
|
But it is nice to produce executables. Also easier to test, what with segfaults and such.
|
|
|
|
|
2015-10-07 10:32:48 +02:00
|
|
|
Executable files are not supported (yet?), but object files work. So the only thing that remains is to
|
2014-04-25 12:29:12 +02:00
|
|
|
call the linker on the produced object file. The resulting file is an executable that actually works!!
|
|
|
|
|
|
|
|
Thanks to Mikko for starting this arm/elf project in the first place: https://github.com/cyndis/as
|
|
|
|
|
2015-10-07 10:32:48 +02:00
|
|
|
This part definitely needs tlc, so anyone who is interested, dig in!
|