[lld] [LLD][ELF] Fix SHF_MERGE misalignment when spilled (PR #119289)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 09:50:19 PST 2024


================
@@ -310,17 +310,19 @@ SECTIONS {
 .byte 0x12, 0x34
 
 .section .b,"aM", at progbits,1
+.p2align 1
----------------
MaskRay wrote:

An alignment of 2 works, but a larger alignment makes the effect clearer.

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


More information about the llvm-commits mailing list