[lld] [lld][ELF][AVR] Add range check for R_AVR_13_PCREL (PR #67636)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 10:23:42 PDT 2023


================
@@ -0,0 +1,33 @@
+; REQUIRES: avr
+; RUN: llvm-mc -filetype=obj -triple=avr -mcpu=atmega328 %s -o %t.o
+; RUN: not ld.lld %t.o -o %ta 2>&1 -Ttext=0x1000 --defsym=callee=0xf00  | \
----------------
MaskRay wrote:

Place redirection at the end: `2>&1 | `

`-o /dev/null` if the output is not used.

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


More information about the llvm-commits mailing list