2 ms·
I'm not really sure what your point is; program and section headers are different things. ASLR is, relatively speaking, a recent invention (when compared to EL
by gumby 8y ago
I'm not really sure what your point is; program and section headers are different things.
ASLR is, relatively speaking, a recent invention (when compared to ELF). ELF describes memory layout, so if you want to randomize it you pretty much have to do your relocation at runtime...which you can do except for the entry point, but I suppose you could make an extension to relocate even that. For that one small thing I think you could propose a revision to the ELF spec.
And I'm sure there are still bugs in bfd! But with ELF being pretty pervasive these days that 30 year-old (just noticed that: 1989-2019) software is less useful than it used to be. But feel free to send in a bug fix if you can't have a string table index of 0 (it would surprise me if that bug really exists, but stranger things have happened...)
- burfog 8y agoProgram and section headers are different things only because ELF makes it so, and this is a bad design. The same mostly goes for having both physical and virtual addresses. Has there ever even existed a loader that would generate page tables according to that? There should have been one kind of address, and possibly header flags to indicate allowable MMU states. If there is no such bug, then you can stop wasting that byte at the beginning of the string tables.