mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

From https://gcc.gnu.org/ml/gcc-patches/2010-09/msg01807.html -fsplit-stack should pass --wrap=pthread_create to linker for -fsplit-stack It is needed to initialize the stack guard. This fixes PR 20148. Patch by H.J Lu! llvm-svn: 258698
18 lines
688 B
C
18 lines
688 B
C
// Test split stack ld flags.
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -target i386-unknown-linux -fsplit-stack \
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LINUX-I386 %s
|
|
//
|
|
// CHECK-LINUX-I386: "--wrap=pthread_create"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -target x86_64-unknown-linux -fsplit-stack \
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LINUX-X86-64 %s
|
|
//
|
|
// CHECK-LINUX-X86-64: "--wrap=pthread_create"
|