summaryrefslogtreecommitdiffstats
path: root/meta-oe/conf/distro/include/meta_oe_security_flags.inc
Commit message (Collapse)AuthorAgeFilesLines
* security_flags.inc: DeleteKhem Raj2017-09-081-28/+0
| | | | | | | | | | | | OE-Core has now reworked the PIE flags, where they are implicitly passed by compiler when security flags are enabled None of these pinnings are needed anymore, since these packages compile fine with security flags enabled Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* meta_oe_security_flags.inc: Disable PIE for libdevmapperPeter Kjellerstedt2017-05-041-0/+1
| | | | | | | | Since libdevmapper was split out from lvm2, it now needs its own entry to disable building with -fpie. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta_oe_security_flags.inc: Disable PIE for luajitKhem Raj2016-12-021-0/+7
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta_oe_security_flags: disable PIE for libdbus-c++André Draszik2016-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The short version - it ain't working. The long version: For shared libraries made from C++ sources, configure runs some code to determine how to link shared libraries (from libtool.m4) using g++. In particular, it calls g++ ${CFLAGS} -c conftest.c g++ ${CFLAGS} -nostdinc -shared -v conftest.o to then parse the gcc -v output. If CFLAGS contains -pie -fpie, g++ adds Scrt1.o to the objects being linked together to form the final output. Once Scrt1.o is pulled into a shared library, it becomes impossible to link this DSO against a final binary. I didn't investigate why, by I suspect because of -Wl,relro -Wl,now libtool takes note of Scrt1.o (and all other libraries added by gcc, but those don't matter here) and adds it everywhere a shared library is being created, see predep_objects= and postdep_objects= in the 'LIBTOOL TAG CONFIG: CXX' section. In other words, the the shared library created during the build can't be linked against. This includes some applications that are part of the libdbus-c++ source tree, but also any other external user. While I am not sure if the root of the issue is in - gcc (should it really add Scrt1.o despite -shared), or in - libtool (should it filter out -pie -fpie during the configure step), or even in - OE (should it really be adding -pie -fpie to everything, even shared libraries by default and unconditionally), we can make things work by using SECURITY_NO_PIE_CFLAGS instead. Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* libvdpau: Disable PIEKhem Raj2016-11-261-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta_oe_security_flags.inc: Add libcec, libmodplug, libcdioKhem Raj2016-11-231-0/+3
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta_oe_security_flags: Disable PIE for s3c64xx-gpio/s3c24xx-gpio/cpufrequtilsKhem Raj2016-11-231-0/+3
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: override SECURITY_CFLAGS for llvm3.3Manuel Bachmann2016-06-081-0/+1
| | | | | | | | | | | | | | When compiling llvm3.3 and including meta_oe_security_flags.inc: - on x86 (qemux86 e.g.), text relocation warnings appear ; - on x86-64 (qemux86-64 e.g.), linking fails with the following error message: "relocation R_X86_64_PC32 against undefined symbol [...] recompile with -fPIC" Add llvm3.3 to the overrides list, so that it builds correctly. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: override SECURITY_CFLAGS for a set of recipesDmitry Eremin-Solenikov2015-04-241-0/+7
Some of recipes produce errors if the distro has enabled usage of security_flags.inc file. Fix those errors (and QA warnings) by providing an additional include file that is require'd from conf/layer.conf. Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>