[LLDB-DAP] Send Progress update message over DAP (#123837)
[llvm-project.git] / lld / test / ELF / linkerscript / symbol-ordering-file2.s
blobe441aa2afaa3a4c52e161d80da8004e3ac1f9c69
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 ## Check we do not crash when trying to order linker script symbol.
6 # RUN: echo "bar" > %t.ord
7 # RUN: echo "SECTIONS { bar = 1; }" > %t.script
8 # RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t.script \
9 # RUN: -o %t.out 2>&1 | FileCheck %s
10 # CHECK: warning: {{.*}}.script:1: unable to order absolute symbol: bar
12 ## Check we do not crash when trying to order --defsym symbol.
14 # RUN: echo "bar" > %t.ord
15 # RUN: ld.lld --symbol-ordering-file %t.ord %t.o -defsym=bar=1 \
16 # RUN: -o %t.out 2>&1 | FileCheck %s --check-prefix=DEFSYM
17 # DEFSYM: warning: --defsym: unable to order absolute symbol: bar