[lld] [lld] Merge GOT entries for symbols that have been ICFed (PR #131630)

Pranav Kant via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 20 14:39:59 PDT 2025


pranavk wrote:

Thanks Fangrui for taking a look.

We are encountering this in code-size sensitive binaries where using the machine outliner to separate the ADRP and LDR into different sections seems sensible to reduce the binary size. On its own, I don't think it's just an inefficiency -- it's a bug in the linker as it's valid for AArch64 compiler to emit that code and linker should be able to handle that as an input.


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


More information about the llvm-commits mailing list