mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
security_flags: Update to correctly link X modules
Remove the -z,now flag from linking [YOCTO #5885] (From OE-Core rev: 545986bfbfe20f2b6e8a46e88e2cc3007ca344e6) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b1a75ba1d8
commit
4df2d018a1
@@ -1,6 +1,7 @@
|
||||
SECURITY_CFLAGS ?= "-fstack-protector-all -pie -fpie -D_FORTIFY_SOURCE=2"
|
||||
SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-all -D_FORTIFY_SOURCE=2"
|
||||
SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now"
|
||||
SECURITY_X_LDFLAGS ?= "-Wl,-z,relro"
|
||||
|
||||
# powerpc does not get on with pie for reasons not looked into as yet
|
||||
SECURITY_CFLAGS_powerpc = "-fstack-protector-all -D_FORTIFY_SOURCE=2"
|
||||
@@ -72,3 +73,11 @@ SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
|
||||
TARGET_CFLAGS_append = " ${SECURITY_CFLAGS}"
|
||||
TARGET_LDFLAGS_append = " ${SECURITY_LDFLAGS}"
|
||||
|
||||
SECURITY_LDFLAGS_pn-xf86-video-fbdev = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-intel = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-omapfb = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-omap = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-vesa = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-vmware = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xserver-xorg = "${SECURITY_X_LDFLAGS}"
|
||||
|
||||
Reference in New Issue
Block a user