> I think that one of the goals here is to not make that too dependent on elf. > For instance, we are in the process of getting rid of all of the dwarf. > After maddox does that, our only dependence on elf will be as a container > to hold all of the sections. > Given that gcc is not always an elf compiler, it really is a lot easier to > invent your own wheel for something like this rather that using elf's wheel > for the first target and then having to figure out how make someone else > wheel fit the for the rest of the targets.
This is basic functionality that *every* object file format supports. I don't think using a symbol and a relocation is going to tie you down to ELF -- no more so than the idea of using sections to store your data in. I also think it's simpler and more deterministic than using a hash. -cary