40 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: echo "A B 5" > %t.call_graph5# RUN: echo "B C 50" >> %t.call_graph6# RUN: echo "C D 40" >> %t.call_graph7# RUN: echo "D B 10" >> %t.call_graph8# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o %t2 --call-graph-profile-sort=hfsort --print-symbol-order=%t39# RUN: ld.lld -e A %t --symbol-ordering-file %t3 -o %t210# RUN: llvm-readobj --symbols %t2 | FileCheck %s11 12# CHECK: Name: A13# CHECK-NEXT: Value: 0x20112314# CHECK: Name: B15# CHECK-NEXT: Value: 0x20112016# CHECK: Name: C17# CHECK-NEXT: Value: 0x20112118# CHECK: Name: D19# CHECK-NEXT: Value: 0x20112220 21.section .text.A,"ax",@progbits22.globl A23A:24 nop25 26.section .text.B,"ax",@progbits27.globl B28B:29 nop30 31.section .text.C,"ax",@progbits32.globl C33C:34 nop35 36.section .text.D,"ax",@progbits37.globl D38D:39 nop40