llvm-project
60ab8c89 - [lld][macho] Use reloc length correctly in hash computation (#165287)

Commit
56 days ago
[lld][macho] Use reloc length correctly in hash computation (#165287) `Reloc::length` actually encodes the log2 of the length. Thanks @int3 for pointing this out in https://github.com/llvm/llvm-project/issues/160894#issuecomment-3416250179. This code computes hashes of relocations. With the correct length, the hashes should more accurately represent the relocation. In my testing of some large binaries, the compressed size change is negligable.
Author
Parents
Loading