xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom c54488ad5fd657e0f154d76d7456d9080be24836 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Khem Raj <raj.khem@gmail.com>
3*4882a593SmuzhiyunDate: Sat, 10 Jun 2017 11:18:49 -0700
4*4882a593SmuzhiyunSubject: [PATCH] Disable PIE during link
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunWe have explcitly disabled PIE during compile so we
7*4882a593Smuzhiyunjust need to match it with linker flags
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunUpstream-Status: Pending
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSigned-off-by: Khem Raj <raj.khem@gmail.com>
12*4882a593Smuzhiyun---
13*4882a593Smuzhiyun purgatory/Makefile | 2 +-
14*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
15*4882a593Smuzhiyun
16*4882a593Smuzhiyundiff --git a/purgatory/Makefile b/purgatory/Makefile
17*4882a593Smuzhiyunindex 416e6b9..f00edb4 100644
18*4882a593Smuzhiyun--- a/purgatory/Makefile
19*4882a593Smuzhiyun+++ b/purgatory/Makefile
20*4882a593Smuzhiyun@@ -59,7 +59,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
21*4882a593Smuzhiyun 			-Iinclude \
22*4882a593Smuzhiyun 			-I$(shell $(CC) -print-file-name=include)
23*4882a593Smuzhiyun $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
24*4882a593Smuzhiyun-			-Wl,--no-undefined -nostartfiles -nostdlib \
25*4882a593Smuzhiyun+			-Wl,--no-undefined -no-pie -nostartfiles -nostdlib \
26*4882a593Smuzhiyun 			-nodefaultlibs -e purgatory_start -Wl,-r \
27*4882a593Smuzhiyun 			-Wl,-Map=$(PURGATORY_MAP)
28*4882a593Smuzhiyun
29