From patchwork Mon May 27 07:45:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 165196 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp6826577ili; Mon, 27 May 2019 00:45:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKLEMMUh6DfmLy7kRuLLPIvJgy+XzlnivexYfkKEJ83d68r6M3myt4U+qKPONzs9wKfAOS X-Received: by 2002:a17:90a:ba96:: with SMTP id t22mr29491785pjr.143.1558943146010; Mon, 27 May 2019 00:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558943146; cv=none; d=google.com; s=arc-20160816; b=xkudzGDL8Cw+5DJ30JM3Z9/RMW4nB2LzWWep1D+WzJ2Oqu1IFam6kWJVFoINbd8XTK upKJu1VRdYwVk3z9bIYSw4JE3bEWFUDooG/w6F99VkqjfYcLdA0Ql7QNqNXhZokFsbV6 87rQhhxHppmKfv4YZ68Rv1G/Kc533+LEFEsCo85jvWrLmSiK06rzpH8v+uxat7zbNXhl MhzVB6v7W0i3u299svH9MivIdLD8HxSrgZVPqfT8CzM8lzYKXVjoUzRCTYT2PlYX8qK9 8/9F54akKYRip+P6u3S9doMDCy515/oNGXmaCTeAifJg9SJ4b36mbxaO2EMU5EouDRw+ BN+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=9T9Wf4/shseJiWqqdWRNDFhsFkaEXRr9j9soZlE3SRI=; b=fFA+HimIvmnfKrU9VOudmmRpWoH1EOpmA2KaBAD496T2iKklWJid0rY9yQQ0Yif7dt o4i5MfKWPkI3fX7xpC3or4NQ+27KL+l6pOSCCR6y7jWgQnVZJw7HkIvqH/2txFsuLN9D qwHIPLtGgYWCjivLqGoijgCZOgVBnePduZetcm37IGlspytQjhTGT5WpXMXz3stVQqlO U8pdiEgBuGuVT1LIjGX/gMhSyivVmbvpg0nSwtvZkDWhIefdqIOrob5JOQ2JEjI1+AhW MiZfooxbc8+vsTQyPVHCaXtVqpw3MWvdwoGaIpuS2N5z1GzWIUZRiplDwLODBo4Tt9iP E6LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fkT0zrh9; 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=QUARANTINE 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 m6si17224376pjl.60.2019.05.27.00.45.45; Mon, 27 May 2019 00:45:45 -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.s=20161025 header.b=fkT0zrh9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 72F247E054; Mon, 27 May 2019 07:45:39 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id 519926B8BC for ; Mon, 27 May 2019 07:45:38 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id z28so9104863pfk.0 for ; Mon, 27 May 2019 00:45:39 -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:mime-version :content-transfer-encoding; bh=FRIu6rJML42euUxNrpI3wRHaROUtAxVO3VbkpDBFBN8=; b=fkT0zrh9ZyNMg/Dh3hy4A79JQ8O528BsUBg7UVkjC8NZUH0FLknR9WU7FTrTj54Z2E jNRPS9tsyfAG4mGT+ZiOkqLhIHc3J6o7FHmldjoe/BU/E2cIGvVsFuz+M0aEjeKyU4w+ 0vTY6o3Zz/45aUApRC4+5yX+VULqfEOek2pun66KMYeBZTKwLV/8U+H5G0HpmBt2bVfa CiItiVsEatR/z4/j9kxz7bzByxE+OoUuD2b6Ce8T8uT8eWQJaFEmte2jmkhDts4dzG2F uajeV2i5pX6ILcxUdNKIwT+i8SSLq5/S5/KP7JxrKfOzC2AlGiPli00EmAY8//uTMP6P n83A== 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:mime-version :content-transfer-encoding; bh=FRIu6rJML42euUxNrpI3wRHaROUtAxVO3VbkpDBFBN8=; b=r1HhH/mWzMJ6X7HHr4LoHSG1whJIk4CLQDGLq1hP2G05HQrrgZdgVuAv282Fhm3J6c MM9H7FBYLWI2LCiwInnBjSojP39JRG6RzAz0oC5k0ek3Nzy9T8yUMyWQEMZO9mjGmwW0 a74XNu0c3M2nLGeP8m1zOTUVTsYnx0GNhnpAj1lT1ylaBba5Lzws/M/LrQl4Sd3xLcmy D8uJYOSewKxHBi36pgAQRf28haG3IPP1lPTTf1m4MzlTdBXoF4g+X8U8G+oO66mn2Vqb YwzafzET0sl+73GAVdvDraNlVNLR6kM2G3w99bGJxTMjr4IJJhWZ1Tqt7n9UlgKJWi8R bgIQ== X-Gm-Message-State: APjAAAUjVKi9q1VVNKFFnHUdbvPbS9VrDzTpTP6+sTkxg8AdIIYjIwRE yRdwhROpLwKkWZ73AErW/9g3Gvc1Whs= X-Received: by 2002:a63:4710:: with SMTP id u16mr21943634pga.447.1558943138770; Mon, 27 May 2019 00:45:38 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::e252]) by smtp.gmail.com with ESMTPSA id f2sm8576995pgs.83.2019.05.27.00.45.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 00:45:38 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 27 May 2019 00:45:26 -0700 Message-Id: <20190527074526.27553-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] binutils: Workaround mips assembler crash on target 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org assembler ends up crashing on target sometimes due to segfaults in libbfd, therefore avoid using -O2 for now Signed-off-by: Khem Raj --- meta/recipes-devtools/binutils/binutils_2.32.bb | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core 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 \ --enable-install-libbfd \ --disable-werror" +# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target +# So remove -O2 and use -Os as workaround +SELECTED_OPTIMIZATION_remove_mipsarch = "-O2" +SELECTED_OPTIMIZATION_append_mipsarch = " -Os" + do_install_class-native () { autotools_do_install @@ -47,3 +52,4 @@ PACKAGE_BEFORE_PN += "libbfd" FILES_libbfd = "${libdir}/libbfd-*.so" BBCLASSEXTEND = "native nativesdk" +