[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 12 19:52:20 PST 2024


MaskRay wrote:

The current layout alleviates relocation overflow pressure for `.data` and `.bss` but not `.lrodata`. I don't think this means that we _unsupport_ `-no-pie` use cases. We just don't make `.rodata` nicer to `-no-pie` use cases. We could, but it would be at the cost of layout purity.

Making the layout different depending on `-no-pie`/`-pie` is awkward. `INSERT AFTER .lrodata` would give different behaviors which we should not treat hand-wavy.

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


More information about the llvm-branch-commits mailing list