1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 4# RUN: echo "A B 5" > %t.call_graph 5# RUN: echo "B C 50" >> %t.call_graph 6# RUN: echo "C D 40" >> %t.call_graph 7# RUN: echo "D B 10" >> %t.call_graph 8# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o %t2 9# RUN: llvm-readobj --symbols %t2 | FileCheck %s 10 11# CHECK: Name: A 12# CHECK-NEXT: Value: 0x201123 13# CHECK: Name: B 14# CHECK-NEXT: Value: 0x201120 15# CHECK: Name: C 16# CHECK-NEXT: Value: 0x201121 17# CHECK: Name: D 18# CHECK-NEXT: Value: 0x201122 19 20.section .text.A,"ax",@progbits 21.globl A 22A: 23 nop 24 25.section .text.B,"ax",@progbits 26.globl B 27B: 28 nop 29 30.section .text.C,"ax",@progbits 31.globl C 32C: 33 nop 34 35.section .text.D,"ax",@progbits 36.globl D 37D: 38 nop 39