From 2edd903c05333e152d797143bc2d9e1cce973a57 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 7 Apr 2022 09:37:59 -0700 Subject: [PATCH] [crt][test] Fix dso_handle.cpp for Linux systems which default to PIE --- compiler-rt/test/crt/dso_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/crt/dso_handle.cpp b/compiler-rt/test/crt/dso_handle.cpp index 75529d0..a32ce4b 100644 --- a/compiler-rt/test/crt/dso_handle.cpp +++ b/compiler-rt/test/crt/dso_handle.cpp @@ -1,7 +1,7 @@ // RUN: %clangxx -g -DCRT_SHARED -c %s -fPIC -o %tshared.o // RUN: %clangxx -g -c %s -fPIC -o %t.o // RUN: %clangxx -g -shared -o %t.so -nostdlib %crti %crtbegin %tshared.o %libstdcxx -lc -lm %libgcc %crtend %crtn -// RUN: %clangxx -g -o %t -nostdlib %crt1 %crti %crtbegin %t.o %libstdcxx -lc -lm %libgcc %t.so %crtend %crtn +// RUN: %clangxx -g -o %t -fno-pic -no-pie -nostdlib %crt1 %crti %crtbegin %t.o %libstdcxx -lc -lm %libgcc %t.so %crtend %crtn // RUN: %run %t 2>&1 | FileCheck %s // UNSUPPORTED: arm, aarch64 -- 2.7.4