llvm-project
10 строк · 429.0 Байт
1## Check that we do not reject position-independent executables (PIEs).
2
3## This test uses the clang driver without target flags and will only succeed
4## on Linux systems where the host triple matches the target.
5REQUIRES: system-linux
6
7RUN: %clang %cflags -fPIC -pie %p/Inputs/jump_table_icp.cpp -o %t
8RUN: llvm-bolt %t -o %t.null 2>&1 | FileCheck %s
9
10CHECK: BOLT-INFO: shared object or position-independent executable detected
11