Blame SOURCES/coreclr-hardening-flags.patch

af9764
--- a/src/debug/createdump/CMakeLists.txt
af9764
+++ b/src/debug/createdump/CMakeLists.txt
af9764
@@ -38,6 +38,8 @@
af9764
 
af9764
 add_dependencies(createdump pal_redefines_file)
af9764
 
af9764
+SET_TARGET_PROPERTIES(createdump PROPERTIES LINK_FLAGS -pie)
af9764
+
af9764
 target_link_libraries(createdump
af9764
     createdump_lib
af9764
     # share the PAL/corguids in the dac module
0137a2
--- a/src/corefx/System.Globalization.Native/CMakeLists.txt
0137a2
+++ b/src/corefx/System.Globalization.Native/CMakeLists.txt
0137a2
@@ -71,6 +71,8 @@
0137a2
 set_target_properties(System.Globalization.Native_Static PROPERTIES PREFIX "")
0137a2
 set_target_properties(System.Globalization.Native_Static PROPERTIES OUTPUT_NAME System.Globalization.Native)
0137a2
 
0137a2
+set_target_properties(System.Globalization.Native PROPERTIES LINK_FLAGS -pie)
0137a2
+
0137a2
 if(NOT CLR_CMAKE_PLATFORM_DARWIN)
0137a2
     if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
0137a2
         target_link_libraries(System.Globalization.Native