[lld] ba9b5ff - [ELF,test] Fix RUN line issue in defsym.s
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 20 16:11:01 PDT 2024
Author: Fangrui Song
Date: 2024-07-20T16:10:57-07:00
New Revision: ba9b5ff4f745b2c604e13656cdca0e66835dc99a
URL: https://github.com/llvm/llvm-project/commit/ba9b5ff4f745b2c604e13656cdca0e66835dc99a
DIFF: https://github.com/llvm/llvm-project/commit/ba9b5ff4f745b2c604e13656cdca0e66835dc99a.diff
LOG: [ELF,test] Fix RUN line issue in defsym.s
Added:
Modified:
lld/test/ELF/defsym.s
Removed:
################################################################################
diff --git a/lld/test/ELF/defsym.s b/lld/test/ELF/defsym.s
index 0168ce854cc15..fed937ffc1c9c 100644
--- a/lld/test/ELF/defsym.s
+++ b/lld/test/ELF/defsym.s
@@ -11,8 +11,7 @@
## Check we are reporting the error correctly and don't crash
## when handling the second --defsym.
-# RUN: not ld.lld -o /dev/null %t.o --defsym ERR+ \
-# --defsym foo2=foo1 2>&1 | FileCheck %s --check-prefix=ERR
+# RUN: not ld.lld -o /dev/null %t.o --defsym ERR+ --defsym foo2=foo1 2>&1 | FileCheck %s --check-prefix=ERR
# ERR: error: --defsym: syntax error: ERR+
# CHECK-DAG: 0000000000000123 0 NOTYPE GLOBAL DEFAULT ABS foo1
@@ -27,7 +26,7 @@
# RUN: ld.lld -o %t %t.o --defsym=foo2=1
# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=ABS
-# ABS: 0000000000000123 0 NOTYPE GLOBAL DEFAULT ABS foo2
+# ABS: 0000000000000001 0 NOTYPE GLOBAL DEFAULT ABS foo2
# RUN: ld.lld -o %t %t.o --defsym=foo2=foo1+5
# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=EXPR
More information about the llvm-commits
mailing list