diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-22 19:48:14 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-23 08:55:04 +0200 |
| commit | c84e5ee87852eafff0cbf986bf02c5221cbcec35 (patch) | |
| tree | a978b80bbcc7273ad3a0e3d4de843a8a3ec947e9 /lib/std/multi_array_list.zig | |
| parent | 9043e665a549b87fa73ade7af06682368092d8a9 (diff) | |
| download | zig-c84e5ee87852eafff0cbf986bf02c5221cbcec35.tar.gz zig-c84e5ee87852eafff0cbf986bf02c5221cbcec35.zip | |
coff: improve default COFF/PE object parser
We now do not allocate memory for headers and other metadata unless
requested by the caller. Instead, we read-in the entire contents
of the image into memory and operate on pointers and casts wherever
possible. I have a left a TODO to hook up Windows' memory-mapped API
here in-place of standard `readToEndAlloc` which should be more memory
proof on memory constrained hosts.
This commit also supplements our `std.coff` with a lot missing basic
extern structs required to make our COFF linker.
Diffstat (limited to 'lib/std/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions
