[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / duplicated-synthetic-sym.s
blobd08af3a1a52e5558c6b9f8a47d198533546efa53
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
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
11 // CHECK: duplicate symbol: _binary_file_bin_start
12 // CHECK-NEXT: defined in {{.*}}.o
13 // CHECK-NEXT: defined in file.bin
15 .globl _binary_file_bin_start
16 _binary_file_bin_start:
17 .long 0