diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-01-14 21:55:26 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-01-15 08:16:47 +0100 |
| commit | 2faf8c53d226cec1445156cafdec59af5e909fb2 (patch) | |
| tree | 1b177f07c11e52e99fc569bd217b754c6db7151e /lib/std/debug.zig | |
| parent | 2b0e3ee228e01473cf880f719db9bde5b8f34d25 (diff) | |
| download | zig-2faf8c53d226cec1445156cafdec59af5e909fb2.tar.gz zig-2faf8c53d226cec1445156cafdec59af5e909fb2.zip | |
macho: use target arch page_size for codesig
It turns out I was wrong and we can set the page size to the actual
page size used by the target architecture when dividing the binary
into chunks and calculating a hash of each chunk for embedding within
the adhoc code signature. This shaves of a considerable amount of bytes
since we divide the code signature section by at least 2x.
I've also unified the `write` interface of `CodeSignature` struct to
follow that used in every other bit of `MachO`; namely, the functions
now accept a writer instead of a buffer, therefore, there is no need
to manually track where to write each struct field anymore.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
