From: Andre McCurdy <armccurdy@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/4 v3] security_flags.inc: disable -fstack-protector-XXX for valgrind
Date: Thu, 17 Dec 2015 20:42:01 -0800 [thread overview]
Message-ID: <1450413723-22208-3-git-send-email-armccurdy@gmail.com> (raw)
In-Reply-To: <1450413723-22208-1-git-send-email-armccurdy@gmail.com>
Valgrind (v3.11.0) expects to build with stack protection disabled
and includes -fno-stack-protector in its default CFLAGS. However, the
CFLAGS provided by OE are included on the compiler command line after
the defaults so any -fstack-protector-all / -fstack-protector-strong
option provided by security_flags.inc will cause problems.
| .../build-bcm97425vms/tmp/work/mips32el-rdk-linux/valgrind/3.11.0-r0/valgrind-3.11.0/coregrind/m_mallocfree.c:892: undefined reference to `__stack_chk_guard'
| .../build-bcm97425vms/tmp/work/mips32el-rdk-linux/valgrind/3.11.0-r0/valgrind-3.11.0/coregrind/m_mallocfree.c:947: undefined reference to `__stack_chk_fail'
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/conf/distro/include/security_flags.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 14ac0bf..1795750 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -84,7 +84,7 @@ SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-tcl = "${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-tiff = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-valgrind = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-valgrind = ""
SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
# These 2 have text relco errors with the pie options enabled
--
1.9.1
next prev parent reply other threads:[~2015-12-18 4:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-18 4:41 [PATCH 0/4 v3] valgrind: update to 3.11.0 + fixes Andre McCurdy
2015-12-18 4:42 ` [PATCH 1/4 v3] valgrind: update to 3.11.0 Andre McCurdy
2015-12-18 4:42 ` Andre McCurdy [this message]
2015-12-18 5:16 ` [PATCH 2/4 v3] security_flags.inc: disable -fstack-protector-XXX for valgrind Khem Raj
2015-12-18 5:48 ` Andre McCurdy
2015-12-18 5:55 ` Khem Raj
2015-12-18 4:42 ` [PATCH 3/4 v3] valgrind: don't restrict to armv7a Andre McCurdy
2015-12-18 5:17 ` Khem Raj
2015-12-18 5:56 ` Andre McCurdy
2015-12-18 6:00 ` Khem Raj
2015-12-18 6:11 ` Andre McCurdy
2015-12-18 4:42 ` [PATCH 4/4 v3] valgrind: include aarch64 in COMPATIBLE_HOST Andre McCurdy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450413723-22208-3-git-send-email-armccurdy@gmail.com \
--to=armccurdy@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox