summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-05-27 00:45:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-27 17:06:34 +0100
commit6c37069a244c0430ccf0014427023bb174bf47b2 (patch)
tree90ec25089f83e68834f345f23802f341df0942a6 /meta/recipes-devtools
parentc8ef8b3b0f1edf36bfce8455fe703d6cf48e4c8d (diff)
downloadpoky-6c37069a244c0430ccf0014427023bb174bf47b2.tar.gz
binutils: Workaround mips assembler crash on target
assembler ends up crashing on target sometimes due to segfaults in libbfd, therefore avoid using -O2 for now (From OE-Core rev: a6f9327e79df1bfadb1f613eda799586e60009f2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.32.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.32.bb b/meta/recipes-devtools/binutils/binutils_2.32.bb
index 51a9748906..89315915c4 100644
--- a/meta/recipes-devtools/binutils/binutils_2.32.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.32.bb
@@ -20,6 +20,11 @@ EXTRA_OECONF_class-native = "--enable-targets=all \
20 --enable-install-libbfd \ 20 --enable-install-libbfd \
21 --disable-werror" 21 --disable-werror"
22 22
23# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
24# So remove -O2 and use -Os as workaround
25SELECTED_OPTIMIZATION_remove_mipsarch = "-O2"
26SELECTED_OPTIMIZATION_append_mipsarch = " -Os"
27
23do_install_class-native () { 28do_install_class-native () {
24 autotools_do_install 29 autotools_do_install
25 30
@@ -47,3 +52,4 @@ PACKAGE_BEFORE_PN += "libbfd"
47FILES_libbfd = "${libdir}/libbfd-*.so" 52FILES_libbfd = "${libdir}/libbfd-*.so"
48 53
49BBCLASSEXTEND = "native nativesdk" 54BBCLASSEXTEND = "native nativesdk"
55