Apply ASLR 93/90293/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.025206 accepted/tizen/3.0.m2/tv/20170105.025311 accepted/tizen/3.0.m2/wearable/20170105.025407 accepted/tizen/3.0/common/20161114.111344 accepted/tizen/3.0/ivi/20161011.055416 accepted/tizen/3.0/mobile/20161015.034002 accepted/tizen/3.0/tv/20161016.005517 accepted/tizen/3.0/wearable/20161015.083711 accepted/tizen/common/20160929.163704 accepted/tizen/ivi/20160929.234033 accepted/tizen/mobile/20160929.234027 accepted/tizen/tv/20160929.234025 accepted/tizen/unified/20170309.040301 accepted/tizen/wearable/20160929.234023 submit/tizen/20160929.094931 submit/tizen_3.0.m2/20170104.093754 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000005 submit/tizen_3.0_mobile/20161015.000005 submit/tizen_3.0_tv/20161015.000004 submit/tizen_3.0_wearable/20161015.000004 submit/tizen_unified/20170308.100415 tizen_4.0.m1_release
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 29 Sep 2016 09:37:23 +0000 (18:37 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 29 Sep 2016 09:37:23 +0000 (18:37 +0900)
Change-Id: If0d83ce45ff6ba324a94fc8bb2f67ae4c8003465

common.gypi

index 7d7715e..ced418c 100644 (file)
@@ -61,7 +61,8 @@
           'v8_enable_handle_zapping': 1,
         },
         'defines': [ 'DEBUG', '_DEBUG' ],
-        'cflags': [ '-g', '-O0' ],
+        'cflags': [ '-g', '-O0', '-fPIE' ],
+        'ldflags': [ '-pie' ],
         'conditions': [
           ['target_arch=="x64"', {
             'msvs_configuration_platform': 'x64',
@@ -91,7 +92,8 @@
         'variables': {
           'v8_enable_handle_zapping': 0,
         },
-        'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
+        'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections', '-fPIE' ],
+        'ldflags': [ '-pie' ],
         'conditions': [
           ['target_arch=="x64"', {
             'msvs_configuration_platform': 'x64',