xref: /llvm-project/lld/test/ELF/duplicated-synthetic-sym.s (revision 339f5f727a26e9fbe3187564e504731369609501)
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: rm -rf %t.dir
4// RUN: mkdir %t.dir
5// RUN: cd %t.dir
6// RUN: echo > file.bin
7
8// RUN: not ld.lld %t.o --format=binary file.bin -o /dev/null 2>&1 | FileCheck %s
9// RUN: not ld.lld %t.o --format binary file.bin -o /dev/null 2>&1 | FileCheck %s
10
11// CHECK:      duplicate symbol: _binary_file_bin_start
12// CHECK-NEXT: defined in {{.*}}.o
13// CHECK-NEXT: defined in file.bin
14
15.globl  _binary_file_bin_start
16_binary_file_bin_start:
17  .long 0
18