wincy 4 hours ago

I remember learning about ELF files first because that’s how you’d run pirated PS2 games. Funny how my insatiable appetite for games in my teens resulted in learning so much about Linux executable files and eventually it seemed inevitable that I should just learn to code.

Animats 6 hours ago

Oh, nice. Did not know that executable image processing had moved to user space. Does this eliminate kernel crashes from malformed executables?

  • jchw 3 hours ago

    I think static executables will still be mostly loaded by the kernel; when you have a binary with PT_INTERP it will load that instead, but that executable still needs to be loaded in by the elf binfmt. Unless I just entirely missed what you were talking about from the article, which is surely possible, though I double checked and I don't see it implying that static binaries are loaded by userspace.

    To me this whole thing is interesting since it essentially requires ELF loading to be duplicated between the kernel and libc, and then possibly duplicated again for libdl vs ldlinux. Seems unideal. (Though nothing new. Pretty sure it's been like that for decades by this point.)

vaxman 9 hours ago

We once called that “image activation” before the Industry was taken over by human LLMs in the wake of the dot-com crash.