[PATCH] D13232: ELF2: Add basic linker script support.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 20:42:31 PDT 2015


ruiu added inline comments.

================
Comment at: test/elf2/invalid-elf.test:1-8
@@ -1,9 +1,1 @@
-RUN: not lld -flavor gnu2 %p/Inputs/invalid-data-encoding.elf -o %t2 2>&1 | \
-RUN:   FileCheck --check-prefix=INVALID-DATA-ENC %s
-INVALID-DATA-ENC: Invalid data encoding: {{.*}}/invalid-data-encoding.elf
-
-RUN: not lld -flavor gnu2 %p/Inputs/invalid-file-class.elf -o %t2 2>&1 | \
-RUN:   FileCheck --check-prefix=INVALID-FILE-CLASS %s
-INVALID-FILE-CLASS: Invalid file class: {{.*}}/invalid-file-class.elf
-
 RUN: not lld -flavor gnu2 %p/Inputs/invalid-symtab-sh_info.elf -o %t2 2>&1 | \
----------------
Because these invalid ELF files are not actually recognized as ELF files by their magic bytes. Previously, they were tried to be parsed as ELF files anyways. Now all files that have unrecognized magic are parsed as linker scripts. So these errors are not printed.


http://reviews.llvm.org/D13232





More information about the llvm-commits mailing list