Exploring Object File Formats
maskray.me
maskray.me
[1] https://maskray.me/blog/2020-11-08-stack-unwinding
[2] https://rizin.re/posts/gsoc-2023-dwarf/
[3] https://github.com/rizinorg/ideas/issues?q=is%3Aissue+is%3Ao...
Good bit twiddling practice too
(Pauses commenting to go check) yes it’s referenced in Chapter 3 of “Silence on the Wire”, apparently Office on Windows 95/98 would dump memory from “other programs” into word docs, with some anecdotal sightings in later versions.
struct blah_block{ int sz; char buf[510]; }
But, it turns out, this is not necessary. The only thing about COM is that the file size has to be less than 64K. This enables another memory model, where the code seg and data seg are different, enabling substantially larger programs that were still COM programs. This was the Zortech "small" memory model.
It's a bit of a shame that object files aren't more of a lingua franca of toolchains in practice. Embedding binary blobs inside a program in a portable way is still a mess today.
[1] https://github.com/boricj/ghidra-delinker-extension/tree/mas...
Symbian also used a COFF variant.