BruceEel 2 hours ago

This 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 :)

davidwritesbugs 2 hours ago

I wonder how much of this could be done by a clever linker? There’s a lot of skill in there but how would an llm do, for the rest of us?

radicaldreamer 24 minutes ago

First experience with proper ELFs was using PS2 Linux ELFs to run homebrew and games and get past Sony’s restrictions

mrlonglong 1 hour ago

i386 are perhaps starting to die out. Has anything like this been done for amd64? Can we play such tricks with arm and aarch64?

qsera 1 hour ago

Lot of useful info here! Good work!