[PATCH] D59085: [LLD][ELF] - Replace one of the tests with a YAML version.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 23:37:06 PDT 2019


MaskRay added inline comments.


================
Comment at: test/ELF/invalid/data-encoding.test:12
+
+# RUN: not ld.lld %t %t.a -o %t2 2>&1 | FileCheck %s
+# CHECK: {{.*}}.o: invalid data encoding
----------------
grimar wrote:
> ruiu wrote:
> > It is not clear to me why you had to create an object file in addition to an archive file. Can't you just pass an archive file only?
> I do not remember right now, sorry. I'll recheck tomorrow.
If the object file is not passed => `ld.lld: error: target emulation unknown: -m or at least one .o file required`. `--whole-archive` can be used.


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

https://reviews.llvm.org/D59085





More information about the llvm-commits mailing list