aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO/CodeSignature.zig
AgeCommit message (Collapse)Author
2021-01-15macho: use target arch page_size for codesigJakub Konka
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.
2021-01-01macho: unblock stage2 on 32bit platforms (#7632)Jakub Konka
* macho: unblock stage2 on 32bit platforms Unblocks compilation of stage2 on 32bit platforms, and fixes #7630. * Use libstd convention: reads - usize, writes - u64
2020-12-19macho: auto-coerce to sliceJakub Konka
2020-12-01macho: dynamically calculate code signature paddingJakub Konka
2020-12-01macho: unify code signature between stage1 and stage2Jakub Konka
2020-12-01lld: use commands.LoadCommand in self-hosted linkerJakub Konka
2020-12-01lld: add code signature to lld outputJakub Konka
2020-11-26stage2 macho: first, rough draft at trampoliningJakub Konka
2020-11-26stage2 macho: cleanup logsJakub Konka
2020-11-26stage2 macho: fix issues with codesigningJakub Konka
2020-11-26stage2 macho: generate a code sig (not valid yet)Jakub Konka
2020-11-26stage2 macho: add info about __TEXT segmentJakub Konka
2020-11-26stage2 macho: add empty CodeDirectory blobJakub Konka
2020-11-26stage2 macho: move code signature logic into structJakub Konka