1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3 4## Check we do not crash when trying to order linker script symbol. 5 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: <internal>: unable to order absolute symbol: bar 11 12## Check we do not crash when trying to order --defsym symbol. 13 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 17