Pass relocation base table

This commit is contained in:
2024-09-12 02:21:48 +02:00
parent 8a0751dfb0
commit d29012d30e
4 changed files with 128 additions and 124 deletions

8
TODO
View File

@ -8,11 +8,3 @@
- Don't ignore relocations where the symbol is not defined in the symbol table.
Report an error about an undefined symbol.
- elfObject always uses LSB. It should decide the byte order based on the ELF
header.
- Relocation section header relates to another section (e.g. .rel.text). The
index of that section should be passed together with collected relocations.
- symstrtab creates 3 section headers and does some math to calculate the
offsets and names. Introducing the state monad can help to get rid of magic
numbers.
- The final reutrn value of the state monad should be the Elf header.