[lld] r324072 - [ELF] - Reimplemented duplicated-synthetic-sym.s testcase.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 2 03:25:10 PST 2018
Author: grimar
Date: Fri Feb 2 03:25:10 2018
New Revision: 324072
URL: http://llvm.org/viewvc/llvm-project?rev=324072&view=rev
Log:
[ELF] - Reimplemented duplicated-synthetic-sym.s testcase.
Was suggested during review of D42635, because
linking an .s file as a binary file was confusing.
Modified:
lld/trunk/test/ELF/duplicated-synthetic-sym.s
Modified: lld/trunk/test/ELF/duplicated-synthetic-sym.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/duplicated-synthetic-sym.s?rev=324072&r1=324071&r2=324072&view=diff
==============================================================================
--- lld/trunk/test/ELF/duplicated-synthetic-sym.s (original)
+++ lld/trunk/test/ELF/duplicated-synthetic-sym.s Fri Feb 2 03:25:10 2018
@@ -1,11 +1,16 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: cd %S
-// RUN: not ld.lld %t.o --format=binary duplicated-synthetic-sym.s -o %t.elf 2>&1 | FileCheck %s
-// RUN: not ld.lld %t.o --format binary duplicated-synthetic-sym.s -o %t.elf 2>&1 | FileCheck %s
+// RUN: rm -rf %t.dir
+// RUN: mkdir %t.dir
+// RUN: cd %t.dir
+// RUN: echo > file.bin
-// CHECK: duplicate symbol: _binary_duplicated_synthetic_sym_s_start
-// CHECK: defined at <internal>:(.data+0x0)
+// RUN: not ld.lld %t.o --format=binary file.bin -o %t.elf 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o --format binary file.bin -o %t.elf 2>&1 | FileCheck %s
- .globl _binary_duplicated_synthetic_sym_s_start
-_binary_duplicated_synthetic_sym_s_start:
- .long 0
+// CHECK: duplicate symbol: _binary_file_bin_start
+// CHECK-NEXT: defined at {{.*}}.o:(.text+0x0)
+// CHECK-NEXT: defined at <internal>:(.data+0x0)
+
+.globl _binary_file_bin_start
+_binary_file_bin_start:
+ .long 0
More information about the llvm-commits
mailing list