Creating Teensy ELF Executables for Linux (Or, "Size Is Everything")
www.muppetlabs.com - 26 poäng - 2 kommentarer - 404930 sekunder sedan
Kommentarer (2)
- BruceEel - 887 sekunder sedanThis is actually a lot of fun. Never did it on Linux, but Windows PE EXE files make similar tricks possible. Windows 95 in particular was very permissive. Using a (very primitive, by today's standards) hex editor I tried making the ".text" section begin halfway through the header and bang! ..it worked, a revelation of sorts. I imagine today's loaders may be a bit more strict because of security but I guess you can always make your own loader :)
- Panzerschrek - 581 sekunder sedanThe program described in this article is as simple as possible. What about something more complex, like basic "hello world"? It requires at least one more syscall and several bytes more data.
Nördnytt! 🤓