[lld] [lld/ELF][test] Add test for .got too far away for R_X86_64_(REX_)GOTPCRELX (PR #67609)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 14:50:37 PDT 2023


================
@@ -0,0 +1,25 @@
+# REQUIRES: x86
+# RUN: split-file %s %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o
+# RUN: not ld.lld --no-relax -T %t/lds %t/a.o -o /dev/null 2>&1 | FileCheck %s
----------------
MaskRay wrote:

Replace `# CHECK-NOT: error:` with  `--implicit-check-not=error:`

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


More information about the llvm-commits mailing list