[llvm] [bolt] Use --reorder-functions option directly (PR #179486)

Alexey Moksyakov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 02:49:21 PDT 2026


yavtuk wrote:

> Hi Alexey, I'm trying to understand if it's the best approach for the way we are going to handle PLT functions. I think for the ones that do not require any processing, we can mark them as ignored. The ones that need patching in-place will likely require patch functions on top. And we are going to emit PLT functions to new sections, then maybe we shouldn't exclude those from function reordering? If we want to preserve the internal layout, then we can mark those as non-simple. WDYT?

I agree that we can mark the one as non-simple or set the one as ignored if we are not going to change entries. This approach only if we need to patch plt ntries as for bti case.

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


More information about the llvm-commits mailing list