sos-os / kernel

The Stupid Operating System
Apache License 2.0
264 stars 17 forks source link

Do we actually want to support parsing 32-bit ELFs on 64-bit machines? #87

Closed hawkw closed 7 years ago

hawkw commented 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...

hawkw commented 7 years ago

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.