[lld] [ELF] Postpone "unable to move location counter backward" error (PR #66854)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 22:18:32 PDT 2023


================
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
 # RUN: not ld.lld %t --script %s -o /dev/null 2>&1 | FileCheck %s
-# CHECK: {{.*}}.test:8: unable to move location counter backward for: .text
+# CHECK: {{.*}}.test:8: unable to move location counter (0x2000) backward (0x10) for section '.text'
----------------
arichardson wrote:

Maybe worth adding a test with more than one backwards error? Previously we'd get multiple reports now just the first one. There probably isn't much value in reporting further errors, but I think it does make sense to document this behaviour in a test?

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


More information about the llvm-commits mailing list