20 lines · plain
1## Check that secondary entry points are updated correctly in the ELF symtab2 3RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \4RUN: %p/Inputs/user-order.S -o %t.o5RUN: ld.lld %t.o --emit-relocs --nostdlib -o %t.exe6RUN: llvm-bolt %t.exe -o %t --reorder-functions=user \7RUN: --function-order=%p/Inputs/order.txt8 9RUN: llvm-readelf -Ws %t | cut -d':' -f2- | sort -u | FileCheck %s10 11CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX:]] _start12CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] main13CHECK: [[#]] FUNC LOCAL DEFAULT [[#NDX]] _a14CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] _b15CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] _f16## The following are all secondary entries of _f17CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _c18CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _d19CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _e20