[llvm-branch-commits] ELF: Add --preferred-function-alignment option. (PR #149448)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 22 18:48:00 PDT 2025
pcc wrote:
> What I had in mind was that sh_addralign would contain the preferred alignment (which would also be controlled by -falign-functions), and we would introduce a new LLVM-specific ELF section type containing an array of (relocation pointing to section, minimum alignment) pairs.
Gave it more thought and we don't really need relocations for this, we could just use sh_link. Sent #150151.
https://github.com/llvm/llvm-project/pull/149448
More information about the llvm-branch-commits
mailing list