Closed hawkw closed 7 years ago
If we didn't support this, it would make the ELF parser implementation SIGNIFICANTLY easier, since the word width could be defined at compile time.
Or alternatively, if we didn't support ELFs with mixed 64- and 32-bit sections (which I am not sure if we do anyway). Hmm.
Can a 64-bit machine actually run a 32-bit ELF without Some Kind of Magic, anyway? That might influence design direction here...
Okay, never mind, it looks like all sections in a file have to have the same word size (as I kind of suspected). Never mind.
If we didn't support this, it would make the ELF parser implementation SIGNIFICANTLY easier, since the word width could be defined at compile time.
Or alternatively, if we didn't support ELFs with mixed 64- and 32-bit sections (which I am not sure if we do anyway). Hmm.
Can a 64-bit machine actually run a 32-bit ELF without Some Kind of Magic, anyway? That might influence design direction here...