3 ms·
You can do any of this in-memory wife ELF of course, it's just that nobody does and nobody's written the tools for it (the most obscure tool I know of is `ld -r
by inigyou 2mo ago
You can do any of this in-memory wife ELF of course, it's just that nobody does and nobody's written the tools for it (the most obscure tool I know of is `ld -r`, which links two or more .o files and produces a new .o file instead of an executable)
- XJ6w9dTdM 2mo agoFor sure, the main advantage is that since the SQLite file format is easy to use compared to ELF, it's more likely that such experiments would be even tried at all. I got another one: bundling multiple (completely separate) executables with shared dependencies in the same SQLite, selected by argv[0] when called, like what busybox does
- inigyou 2mo agoAlso known as a zip file!
- Joker_vD 2mo agoAlso known as a directory.
- inigyou 2mo agoIf a directory was contiguous on disk.
- Joker_vD 2mo agoMost files aren't contiguous on a disk either, you know. Which makes inability to punch wholes in the middle of the files without having to read/write huge chunks of data quite annoying, especially when you write a linker or an archiver. Reserving enough space for the header is quite non-trivial.
- inigyou 2mo agoFilesystems try fairly hard to make files mostly contiguous on disk, but they don't do the same to directories.