[oe-commits] [openembedded-core] 10/43: mkelfimage: Fix build on x86_64 with hardening

git at git.openembedded.org git at git.openembedded.org
Sat Jul 22 07:20:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit bbdd999a534ebbff3ff2674d3305988e29edb2df
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Jul 18 19:50:55 2017 -0700

    mkelfimage: Fix build on x86_64 with hardening
    
    We get linking errors on some hosts like
    | ld -static --warn-multiple-gp --warn-common -T linux-i386/convert.lds -o objdir/linux-i386/convert ob
    jdir/linux-i386/head.o objdir/linux-i386/convert_params.o
    | objdir/linux-i386/convert_params.o: In function `printf':
    | convert_params.c:(.text+0x1fd): undefined reference to `__stack_chk_fail_local'
    
    This is because the build system is defaulting to host linker when building
    32bit binaries and it may not have same defaults as OE toolchain and issue
    gets highlighted.
    
    fix it by using cross linker for 32bit links when building on x86_64
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/mkelfimage/mkelfimage_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb b/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb
index 2bcc8d7..2ad4b49 100644
--- a/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb
+++ b/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb
@@ -29,6 +29,7 @@ CACHED_CONFIGUREVARS += "\
     HOST_CFLAGS='${BUILD_CFLAGS}' \
     HOST_CPPFLAGS='${BUILD_CPPFLAGS}' \
 "
+EXTRA_OECONF_append_x86-64 = " --with-i386=${HOST_SYS}"
 
 inherit autotools-brokensep
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list