[PATCH] D99754: [LLD][ELF][AVR] Propagate ELF flags to the linked image

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 22:25:07 PDT 2021


MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lld/test/ELF/avr-flags.s:8
+
+; Ensure LLD won't silently mix object files targeting different ISAs.
+; RUN: not ld.lld %t-v5 %t-xmega3 -o /dev/null 2>&1 | FileCheck --check-prefix ERR %s
----------------
Newer tests use `;; ` for non-CHECK non-RUN comments.


================
Comment at: lld/test/ELF/avr-flags.s:10
+; RUN: not ld.lld %t-v5 %t-xmega3 -o /dev/null 2>&1 | FileCheck --check-prefix ERR %s
+; ERR: cannot link object files with incompatible target ISA
+
----------------
See some newer tests where `error: ` is always added.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99754/new/

https://reviews.llvm.org/D99754



More information about the llvm-commits mailing list