Teensy ELF Executables for Linux - Discussion

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
skeen
Member
Member
Posts: 59
Joined: Tue Sep 27, 2011 6:45 am
Location: Denmark

Teensy ELF Executables for Linux - Discussion

Post by skeen »

I just read;
Teensy ELF Executables for Linux

And while it's rather cool, to be able to pack the ELF headers into one another, I'm actually quite shocked that Linux accepts the mangled, and non-conformant ELF headers.

Does anyone know why this is the case? - That is, why would Linux be interested in running malformed, non-standard programs?
Wouldn't it be smarter, to issue an error about the malformed, non-standard headers, such that the, possibly unaware, developer can fix this? - Also why doesn't Linux use all the ELF header information?
// Skeen
// Developing a yet unnamed microkernel in C++14.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Teensy ELF Executables for Linux - Discussion

Post by Combuster »

The tools don't produce such things, so bothering with a pedantic check on something you wouldn't see or use anyway is a bit unnecessary.

Also, if you can drop a binary like that onto the system, you can also run any other binary so it's not a meaningful security concern either.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply