From patchwork Wed Jul 19 02:50:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 108251 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp277626obm; Tue, 18 Jul 2017 19:51:36 -0700 (PDT) X-Received: by 10.84.132.40 with SMTP id 37mr732137ple.149.1500432695980; Tue, 18 Jul 2017 19:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500432695; cv=none; d=google.com; s=arc-20160816; b=CtZaonTv+g+Gy+NeCyTw17c4D2pBtEu4Vgnpj9d90CfPhpcZW5J6G6CZhslHlHls6S 47PL97eWZwOUFbc/ZJsD7XTIltAExHAPnvX+f8htWtc4dgNJoRlOgOUaeirhQa2tBBV/ MTgO24XmUxNKFSjr8tPSATVqFpPQszbc7rkqqjRnHcxctis4kVho68qnuZKd5uge4IJg fIiEMn0nv4dK6OZJArtKFMpAeLoSeYkdmOfn1i6+3QVpFP4IfBl06QYLVjudjpqBajJf Sju2puDbKr9LjH2zCcpSgnrqApVZOPn8nGWK1ytjoYfuVNgCvYaRFQd9vVLSdf4KNxkN 10ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=4LI7fq64Erv3L3P/csK5raxx29+aHb+O96v386qGMv4=; b=0MPROLxAT5iPY133NDt4TRAPvEweoFnnYE3CaGd79piB9epxMoLQvvgkNtecakOynN Ey/rgqiAw0L6zQLqBK/KoJtnR4g4hgIEPKJgLjJK0Q303ViGasnqlOH/6QDaUYd1GmQp htdav2KPNCrdiCDZKvKvoC3Ahx8Gtm5ir4rzg6oLRAKOg1f6hBZ7UZIFtvYnwoyK6ory 2HzkXwVeCUqpAvKmbc217KTaN9YCtX6E6499rcoBQRv3RTlkLPvDAywKgxgfespflio0 Ja0aZZrtkJ70N+Z5l/Kh81iwHHmjR2EJTpLCQTFREthR0dzEi7WkOnzJcpUWxJMgNUqM ZFeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=JPypAYsC; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f17si3103945pfd.162.2017.07.18.19.51.35; Tue, 18 Jul 2017 19:51:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=JPypAYsC; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5E6E378220; Wed, 19 Jul 2017 02:51:33 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by mail.openembedded.org (Postfix) with ESMTP id 6E59577CE0 for ; Wed, 19 Jul 2017 02:51:05 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id v190so5090654pgv.1 for ; Tue, 18 Jul 2017 19:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YfYhKP0LZNP68brmeibCSfQHUV3zcNwLDiyWTnb9IpA=; b=JPypAYsCp7l6lpEDF9nMymahmm/AxrfF2mYjIcijoByyXDNLwfv4ocVogxOMyjvYc+ teS8kahjjfLlHTylrX2BLr0ydhWdhgrjRxK4IGcsD5QXTMKL+PrfLiF+SrqVA/pzbjYs Ai2KV+8sdmX0BjZlufNK/G+swbKZBfSC07i4Q6n52rHmJuitYa39bKln/NlWXpFtIZD7 +l3vYOuZY/NbI2MPNVshxLPJXbTeYzpZl2K6U9goKlOn5puzOJKTNJXtUq9R/Usykd7D lg/lB9VLdmDHQKMGQaRuXZe4RW8m+u040r0/GmElNQ7MPIyfzIaGBi8gSC22x1j3gNAh ZrFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YfYhKP0LZNP68brmeibCSfQHUV3zcNwLDiyWTnb9IpA=; b=jVcct/99R/4gN3Zw7x9ywlQ8hDZq8RVkBsyVWdmZCVorD7YwgPUKOSIhP32ecviV0b COHpqIQYwoH4sso9rYknZSBvkplDvYiCT2AOzD4WkeREfbo+/pNS/w1MKeMADVfdPG7D NK85K6Ckbf06uMgobvn4ok3Sir7Brry+3HL9U0231EGgUsd0WtOYf7HccVZaUXg6xrY9 9t1T/5lBOT5qBY0iD2GDWoEmWXSruvLAbrvZySnD+Xecg5d5nMEM0Jhct5RQqIAU+GzT D0WIeUkQBLwywHglBqpbfn0D5eVu/OqDTgc8xQZcGJHmRsyYSelQsKEGg9b3AtKa/FOU I1fQ== X-Gm-Message-State: AIVw113RrJxRbfEjEx1nfPnp1cXtnel8q7yKM03575+HiDM2MIHpqToI gcv8w/BKihybo59L X-Received: by 10.84.132.13 with SMTP id 13mr839406ple.42.1500432666597; Tue, 18 Jul 2017 19:51:06 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id w87sm7726077pfk.100.2017.07.18.19.51.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 19:51:05 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 18 Jul 2017 19:50:55 -0700 Message-Id: <20170719025055.34644-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170719025055.34644-1-raj.khem@gmail.com> References: <20170719025055.34644-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/2] mkelfimage: Fix build on x86_64 with hardening X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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 --- meta/recipes-devtools/mkelfimage/mkelfimage_git.bb | 1 + 1 file changed, 1 insertion(+) -- 2.13.3 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb b/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb index 2bcc8d7bd9..2ad4b49ab1 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