24 lines · plain
1# REQUIRES: x862 3## Test we enable function sections for LTO so --symbol-ordering-fils is respected4## for function symbols.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o7# RUN: llvm-as %p/Inputs/symbol-ordering-lto.ll -o %t.bc8 9# RUN: echo "tin " > %t_order_lto.txt10# RUN: echo "_start " >> %t_order_lto.txt11# RUN: echo "pat " >> %t_order_lto.txt12 13# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t14# RUN: llvm-nm -v %t | FileCheck %s15 16# CHECK: T tin17# CHECK-NEXT: T _start18# CHECK-NEXT: T pat19 20.globl _start21_start:22 call pat23 call tin24