[lld] [ELF] Merge exportDynamic into versionId (PR #71272)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 4 14:49:25 PDT 2023


================

----------------
MaskRay wrote:

Thanks for catching this! I stared at this but forgot that `uint16_t` `sym2->versionId` needs to adjust this condition.

Added `-pie` RUN lines in to `symver-non-default.s` to e6bd68c90b1a386e276f53ba28fdfdfda48bcea1 to catch this out-of-bounds read. Adjusted the code in e6a9f8c08ddab444f581a18c0d3c2ad242448e7c

https://github.com/llvm/llvm-project/pull/71272


More information about the llvm-commits mailing list