Add PIC, relro compile option 82/168482/1 accepted/tizen_5.0_base accepted/tizen_5.5_base_mobile_hotfix tizen_5.0_base tizen_5.5_base_mobile_hotfix accepted/tizen/5.0/base/20181101.091552 accepted/tizen/5.5/base/20191030.083220 accepted/tizen/5.5/base/mobile/hotfix/20201023.084034 accepted/tizen/base/20180209.132414 submit/tizen_5.0_base/20181101.000002 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_base/20180205.003417 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 29 Jan 2018 02:56:14 +0000 (11:56 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 29 Jan 2018 02:56:14 +0000 (11:56 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Add PIC, relro compile option
[Cause & Measure] Add PIC, relro compile option
[Checking Method]

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ie9a28843da39fc22a2ef69d2fc12cd82ef108536
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/coreutils.spec

index e5584881ed9356a761e692e857301708d8160d46..1612f1142d7dfe30fd6e95679f326b82c5e4ce60 100644 (file)
@@ -57,8 +57,8 @@ su - run a command with substitute user and group ID
 %build
 cp %{SOURCE1001} .
 
-export CFLAGS=" -fpie"
-export LDFLAGS=" -pie"
+export CFLAGS=" -fPIC"
+export LDFLAGS=" -Wl,-z,relro -pie"
 
 cp build-aux/config.sub ../mktemp-1.5
 cp build-aux/config.guess ../mktemp-1.5