From e9f635587a0c8386e9bfae2013f8bda0964ea14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=B6=98=EC=84=9D/Developer=20Experience=20Lab?= =?UTF-8?q?=28S/W=EC=84=BC=ED=84=B0=29/Senior=20Engineer/=EC=82=BC?= =?UTF-8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 24 Aug 2017 08:55:26 +0900 Subject: [PATCH 13/29] Revert "Add -pie to linker option (#16)" This reverts commit c220f1608407a74c6c0f4e7145953453b0573fcb. --- src/coreclr/hosts/unixcoreconsole/CMakeLists.txt | 2 -- src/coreclr/hosts/unixcorerun/CMakeLists.txt | 2 -- src/ilasm/CMakeLists.txt | 2 -- src/ildasm/exe/CMakeLists.txt | 1 - src/tools/crossgen/CMakeLists.txt | 1 - 5 files changed, 8 deletions(-) diff --git a/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt b/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt index 15d6d38..2daeaab 100644 --- a/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt +++ b/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt @@ -31,6 +31,4 @@ if(NOT CLR_CMAKE_PLATFORM_ANDROID) ) endif() -set_target_properties(coreconsole PROPERTIES LINK_FLAGS -pie) - install_clr(coreconsole) diff --git a/src/coreclr/hosts/unixcorerun/CMakeLists.txt b/src/coreclr/hosts/unixcorerun/CMakeLists.txt index 85499c8..07beaae 100644 --- a/src/coreclr/hosts/unixcorerun/CMakeLists.txt +++ b/src/coreclr/hosts/unixcorerun/CMakeLists.txt @@ -32,6 +32,4 @@ if(NOT CLR_CMAKE_PLATFORM_ANDROID) ) endif() -set_target_properties(corerun PROPERTIES LINK_FLAGS -pie) - install_clr(corerun) diff --git a/src/ilasm/CMakeLists.txt b/src/ilasm/CMakeLists.txt index 5668d1f..9e99d02 100644 --- a/src/ilasm/CMakeLists.txt +++ b/src/ilasm/CMakeLists.txt @@ -64,8 +64,6 @@ if(CLR_CMAKE_PLATFORM_UNIX) palrt ) - set_target_properties(ilasm PROPERTIES LINK_FLAGS -pie) - # FreeBSD and NetBSD implement dlopen(3) in libc if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) target_link_libraries(ilasm diff --git a/src/ildasm/exe/CMakeLists.txt b/src/ildasm/exe/CMakeLists.txt index cfd5db0..bf09be5 100644 --- a/src/ildasm/exe/CMakeLists.txt +++ b/src/ildasm/exe/CMakeLists.txt @@ -54,7 +54,6 @@ if(CLR_CMAKE_PLATFORM_UNIX) coreclrpal palrt ) - set_target_properties(ildasm PROPERTIES LINK_FLAGS -pie) # FreeBSD and NetBSD implement dlopen(3) in libc if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) diff --git a/src/tools/crossgen/CMakeLists.txt b/src/tools/crossgen/CMakeLists.txt index b8e9cf7..3b9c5ba 100644 --- a/src/tools/crossgen/CMakeLists.txt +++ b/src/tools/crossgen/CMakeLists.txt @@ -50,7 +50,6 @@ if(CLR_CMAKE_PLATFORM_UNIX) coreclrpal palrt ) - set_target_properties(crossgen PROPERTIES LINK_FLAGS -pie) else() target_link_libraries(crossgen advapi32 -- 2.7.4