• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3## Test we enable function sections for LTO so --symbol-ordering-fils is respected
4## for function symbols.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o
7# RUN: llvm-as %p/Inputs/symbol-ordering-lto.ll -o %t.bc
8
9# RUN: echo "tin  " > %t_order_lto.txt
10# RUN: echo "_start " >> %t_order_lto.txt
11# RUN: echo "pat " >> %t_order_lto.txt
12
13# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t
14# RUN: llvm-nm -v %t | FileCheck %s
15
16# CHECK:      T tin
17# CHECK-NEXT: T _start
18# CHECK-NEXT: T pat
19
20.globl _start
21_start:
22  call pat
23  call tin
24