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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 15:30:36 PST 2023


MaskRay wrote:

Even my suggestion placing `.ltext` separately (before rodata) has a potential problem that its distance with `.eh_frame` may be larger and `.eh_frame` doesn't have a complete 64-bit implementation. Some large code model users may hard code the section name to be `.ltext` (terrible idea, but such users may be present). I wish that we have complete analysis that this is necessary and `-mcmodel=medium` isn't sufficient before proceeding with the linker change.

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


More information about the llvm-commits mailing list