You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
549 B
18 lines
549 B
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: rm -rf %t.dir
|
|
// RUN: mkdir %t.dir
|
|
// RUN: cd %t.dir
|
|
// RUN: echo > file.bin
|
|
|
|
// RUN: not ld.lld %t.o --format=binary file.bin -o /dev/null 2>&1 | FileCheck %s
|
|
// RUN: not ld.lld %t.o --format binary file.bin -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
// CHECK: duplicate symbol: _binary_file_bin_start
|
|
// CHECK-NEXT: defined at {{.*}}.o:(.text+0x0)
|
|
// CHECK-NEXT: defined at file.bin:(.data+0x0)
|
|
|
|
.globl _binary_file_bin_start
|
|
_binary_file_bin_start:
|
|
.long 0
|