feature: Add ELF support to the assembler and emulator #5

Open
opened 2025-06-19 16:57:12 +01:00 by nullndvoid · 2 comments

This would involve implementing a reader and writer for ELF relocatable objects (typically .o files), as well as writing somewhat of a linker to link different object files together.

TODOs

  • Read and write ELF relocatable objects
  • Add a section directive to DSA Assembly
  • Write a linker to statically link the relocatable objects together, resolving symbols as required.
  • Add a Clap interface to the assembler allowing for a --format option.
  • Make the linker into a separate program/library accepting a list of object files
  • (At a stretch) Support linker scripts lmao

This will be done on a separate ELF branch in order to merge later when the feature is mostly complete.

This can be assigned to @nullndvoid but anyone can help so long as the work is done on the elf branch.

This would involve implementing a reader and writer for ELF relocatable objects (typically .o files), as well as writing somewhat of a linker to link different object files together. # TODOs - [ ] Read and write ELF relocatable objects - [ ] Add a section directive to DSA Assembly - [ ] Write a linker to statically link the relocatable objects together, resolving symbols as required. - [ ] Add a Clap interface to the assembler allowing for a --format option. - [ ] Make the linker into a separate program/library accepting a list of object files - [ ] **(At a stretch)** Support linker scripts lmao This will be done on a separate ELF branch in order to merge later when the feature is mostly complete. This can be assigned to @nullndvoid but anyone can help so long as the work is done on the `elf` branch.
nullndvoid added the Enhancement label 2025-06-19 16:57:12 +01:00
nullndvoid self-assigned this 2025-06-19 16:57:12 +01:00
zxq5 was assigned by nullndvoid 2025-06-19 16:57:12 +01:00
nullndvoid added this to the Damn Simple Architecture project 2025-06-19 16:57:12 +01:00
Owner

@nullndvoid we can probably tick the section directive as we have that encoded in the instruction set, unless you had a different implementation in mind?

@nullndvoid we can probably tick the section directive as we have that encoded in the instruction set, unless you had a different implementation in mind?
Owner

we probably want super detailed / customisable log levels

we probably want super detailed / customisable log levels
zxq5 pinned this 2025-06-25 23:22:51 +01:00
Sign in to join this conversation.