[lld] [LLD] Ensure explicit PT_GNU_RELRO has correct p_align (PR #133022)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 09:19:32 PDT 2025
MaskRay wrote:
I don’t find the reasoning particularly compelling. The internal linker script in GNU ld doesn’t make use of the Output Section Phdr feature. When this feature is employed, the alignment of the phdr is dictated by its component sections. I’m not convinced that the p_align(PT_GNU_RELO) = rule overrides the standard behavior of the Output Section Phdr. LLD’s approach here has been more cosmetic than substantive, and I don’t think we should add code complexity for something we aren’t committed to guaranteeing.
https://github.com/llvm/llvm-project/pull/133022
More information about the llvm-commits
mailing list