[lld] [ELF] Don't relax PLT32 for branches from small into large code on x86-64 (PR #216409)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 19:53:51 PDT 2026


https://github.com/MaskRay requested changes to this pull request.

alanzhao/plt32-no-relax implements range-extension thunks. Only PLT32-unreachable branches switch to thunks. 

This patch scans relocations and and pretends SHF_X86_64_LARGE relocations as IPLT instead of measuring the distance. Both SHF_X86_64_LARGE and IPLT are hacky ways to achieve what you want. I don't think we should proceed with this approach.

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


More information about the llvm-commits mailing list