[lld] [ELF] Detect convergence of output section addresses (PR #93888)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 09:28:10 PDT 2024
================
@@ -68,8 +68,8 @@
# RUN: symbol = .; \
# RUN: .data : { *(.data) } > ram \
# RUN: }' > %t.script
-# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR_OVERFLOW %s
-# ERR_OVERFLOW: error: section '.data' will not fit in region 'ram': overflowed by 2 bytes
+# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck --check-prefix=NOT_CONVERGE %s
+# NOT_CONVERGE: error: address (0x14) of section '.text' does not converge
----------------
MaskRay wrote:
Yes. The memory region is `ram : ORIGIN = symbol, LENGTH = 4094`. The origin and the symbol address will be increased in each iteration step.
https://github.com/llvm/llvm-project/pull/93888
More information about the llvm-commits
mailing list