diff options
author | Patrick Lu <patrick.lu@intel.com> | 2018-01-04 23:45:01 -0700 |
---|---|---|
committer | Patrick Lu <patrick.lu@intel.com> | 2018-01-04 23:47:38 -0700 |
commit | 96b5aa8d389f75cc9ecf17ddc69081dadf436042 (patch) | |
tree | 6b9ef85b3a34a828a83db257ebe40ad9b35862da | |
parent | b22a349de2412ec596f1e76b1f610d3ec235dedb (diff) |
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 <patrick.lu@intel.com>
-rw-r--r-- | jitter/Makefile | 4 |
1 files 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 |