[lld] [LLD] Add flag to force PLT entries to have a BTI (PR #168365)

Gergely Bálint via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 11:15:58 PST 2025


bgergely0 wrote:

Thanks. I missed this part. Rechecking now: it's also not true that for BTI executables, PLTs always have BTIs. In smaller examples I don't even see nop placeholders. I assume unless at least one PLT is called indirectly, they are all without BTI to save space. (This is still BFD.)

Conclusion: however tempting this small change was, it is insufficient to solve the problem it aimed to solve.

Thanks for taking a look, and sharing your insights @smithp35!



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


More information about the llvm-commits mailing list