[lld] [lld/ELF] Place large executable sections at the beginning (PR #70358)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 14:27:32 PST 2023


aeubanks wrote:

it's fine if .ltext is far away from .got, it uses a 64-bit relocation to access it

I agree that partitioned executables would be nice, but in cases where it's prohibitively expensive to change the deployment model from one main executable to multiple files, this is a nice way of getting things to link if we don't care about performance while also handling precompiled libraries. we can (and do want to) explore more efficient ways to work around the small code model limits, but this is an extremely quick and low-maintenance way to get things linking in the meantime without restructuring everything else

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


More information about the llvm-commits mailing list