3 ms·
> there are things like the layout of .gcc_except_table, which are undocumented except for random blog posts. The way I dealt with it was write an ELF dumper f
by WalterBright 2y ago
> there are things like the layout of .gcc_except_table, which are undocumented except for random blog posts.
The way I dealt with it was write an ELF dumper for the tables, and then run various C++ code snippets through g++ and look at how the tables were constructed.
- gumby 2y agoYou could just have called objdump — that’s what it’s for.
- WalterBright 2y agoI like mine better :-/ The same executable will also detect and dump Elf, Mach, MScoff, and OMF object files. Besides, one doesn't learn anything about how to decode the format by using an existing tool that presents it in decoded form.