From 96b5aa8d389f75cc9ecf17ddc69081dadf436042 Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Thu, 4 Jan 2018 23:45:01 -0700 Subject: jitter: change -fPIC to -fPIE During internal testing, we found -fPIC generated executable can cause extra jitter even on a tuned platform. After switching to -fPIE, the extra jitter went away. The exact root cause is still under investigation. Currently, the focus is on .plt related section. Change-Id: Ieb9af89fea2e5222f5b7c0ec9e9647d9e8fa643e Signed-off-by: Patrick Lu --- jitter/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jitter/Makefile b/jitter/Makefile index dde3870..a6c7fed 100644 --- a/jitter/Makefile +++ b/jitter/Makefile @@ -13,10 +13,10 @@ # limitations under the License. all: - gcc -O1 jitter.c -fstack-protector-all -fPIC -Wformat -Wformat-security -Wl,-z,noexecstack,-z,relro,-z,now -o jitter + gcc -O1 jitter.c -fstack-protector-all -fPIE -Wformat -Wformat-security -Wl,-z,noexecstack,-z,relro,-z,now -o jitter pt: - gcc -O1 jitter.c -fstack-protector-all -fPIC -Wformat -Wformat-security -Wl,-z,noexecstack,-z,relro,-z,now -o jitter -D PROCESSOR_TRACE + gcc -O1 jitter.c -fstack-protector-all -fPIE -Wformat -Wformat-security -Wl,-z,noexecstack,-z,relro,-z,now -o jitter -D PROCESSOR_TRACE clean: rm -f jitter -- cgit 1.2.3-korg