1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 4 5# RUN: echo "A B 100" > %t.call_graph 6# RUN: echo "A C 40" >> %t.call_graph 7# RUN: echo "B C 30" >> %t.call_graph 8# RUN: echo "adena1 A 30" >> %t.call_graph 9# RUN: echo "A adena2 30" >> %t.call_graph 10# RUN: echo "poppy A 30" >> %t.call_graph 11# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o /dev/null \ 12# RUN: -noinhibit-exec -icf=all 2>&1 | FileCheck %s 13 14 .section .text.C,"ax",@progbits 15 .globl C 16C: 17 mov poppy, %rax 18 retq 19 20B = 0x1234 21 22 .section .text.A,"ax",@progbits 23 .globl A 24A: 25 mov poppy, %rax 26 retq 27 28# CHECK: unable to order absolute symbol: B 29# CHECK: {{.*}}.call_graph: no such symbol: adena1 30# CHECK: {{.*}}.call_graph: no such symbol: adena2 31# CHECK: unable to order undefined symbol: poppy 32 33# RUN: ld.lld %t --call-graph-ordering-file %t.call_graph -o /dev/null \ 34# RUN: -noinhibit-exec -icf=all --no-warn-symbol-ordering 2>&1 \ 35# RUN: | FileCheck %s --check-prefix=NOWARN 36# NOWARN-NOT: unable to order 37