Smallest Possible ELF Executable?
taviso writes "I recently stumbled across this paper (google cache), where the author investigates the smallest possible ELF executable on linux, some interesting stuff, and well worth a read. The author concludes, 'every single byte in this executable file can be accounted for and justified. How many executables have you created lately that you can say that about?'
Assembled, it came to something like 35 bytes. In C++, it took over 10K.
:)
Obviously you weren't using the ELF format then:
There is no getting around the fact that the 45th byte in the file, which specifies the number of entries in the program header table, needs to be non-zero, needs to be present, and needs to be in the 45th position from the start of the ELF header.
Maybe ELF is just too inefficient.
moto411.com
Mod that guy up!
I love it.
To quote him again: "aibohphobia-the fear of palindromes. get it?"
The only good weather is bad weather.
wc -c /bin/echo
12024 echo
12 kilobytes just to write a program to write text to the screen. Boy, you linux zealots must love shelling out for those 320 gb hard drives.
Nero-burning ROM for Linux!
Fuck yes, I at least would like a crack at em first, if know what I mean. They are hot, man!Sweet Sixteen indeed!
Smoking is an expensive, slow, and unreliable method of suicide.