rubyx/lib/elf
Torsten Ruger f0350601a7 Move the space instance to the parfait module
A better fit, maybe even a pattern for singletons
2016-12-30 14:10:49 +02:00
..
constants.rb some reek assited coding on assembler 2016-12-16 15:41:26 +02:00
null_section.rb fix names and requires to get some elf out again (still crashes though) 2014-04-19 23:25:46 +03:00
object_file.rb refactor object file somewhat 2016-12-16 16:18:14 +02:00
object_writer.rb Move the space instance to the parfait module 2016-12-30 14:10:49 +02:00
README.md went over the various readmes 2015-10-07 11:32:48 +03:00
section.rb adds first version of the expanded as assembler from mikko 2014-04-14 18:09:56 +03:00
stream_reader.rb move and remove unused from stream reader/writer 2015-10-10 12:24:43 +03:00
stream_writer.rb comment unused fluff 2016-12-10 23:45:24 +02:00
string_table_section.rb adds first version of the expanded as assembler from mikko 2014-04-14 18:09:56 +03:00
symbol_table_section.rb fix double label names 2015-11-14 22:53:01 +02:00
text_section.rb rename length to mem_length and suffer the consequences 2014-09-17 12:04:54 +03:00

Minimal elf support

This is really minimal and works only for our current use case

  • 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.

Executable files are not supported (yet?), but object files work. So the only thing that remains is to 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

This part definitely needs tlc, so anyone who is interested, dig in!