From patchwork Fri Mar 1 03:21:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159449 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp223434jad; Thu, 28 Feb 2019 19:21:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyOu3xcuDDTX4vLI1o3aNgOJmTOnDlO8okOJHp8jUVBJNzLF8V6ztpxf8qlvWZnRCyhJmth X-Received: by 2002:a17:902:e113:: with SMTP id cc19mr3128087plb.179.1551410487359; Thu, 28 Feb 2019 19:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410487; cv=none; d=google.com; s=arc-20160816; b=BJrJpHHGgqeoShXsMP3XF8vd1OZidWuyHz3uCcypQZJg9mWzmXqiLNSlQU/pyODjmo R/E0fUUKc62dhDjcHv7/RDPIXslrU9yKgcsFneRtnuqP6jrz9My2FydHUu9ZPef7NCzF +G3KQRkvS6LmxiPfTYrDDgJAYB4yooRmHaWg9KKWjyEky+nHhvnavFuXDUSrwVfl9WYd /BIY1BhUDtPrYKPPEs4DqE8JszmQozO4d3c0DFAhEflczWG3YH1IMuscaTscdH4j+JBV kGMfQRIUjm7acJfRyGxeRQPoZkkd/yBHlur26iKbiOAfeR4e2zT9oemPEzddFRa/nQjt +lFw== 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=hGUBb9ueQGJXvm3c1tWjQ4dJ3xfTeKtYLc7Dtykk6bk=; b=0I4hsJdtDv4KgBuof/TkzUsX43il4OxgR4oqGpqj3j5lakBGnPZ0WfHxb1VSAkumKm lPMiQ5vSlZtFiKJMnaFA2vwBA+7P2TkVX2nrKsAo35V9mjuRju1+WM25pJos+WH8Z1QC K0R7063MPp4PtJbsMzykWDFJqZP8wOPsAyor2dnWX68TZyiTDDQvWG/r8Yj+MWuW/2G1 k6/NMsj148KUX4S6VMiVS0YDx8RJmmneBgMTsuqvIS4lEzernc4WOS5sOE6V2RJrzLWe qxgCQ18e0e+vja1sBQUnqgGAYurh34I1csSvBHaQCPsAihv/i0Hhrik2MlcJlmvlzQHU lf3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=eEBS7PeK; 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 m188si21141776pfb.266.2019.02.28.19.21.26; Thu, 28 Feb 2019 19:21:27 -0800 (PST) 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=eEBS7PeK; 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 1DC6F7CD22; Fri, 1 Mar 2019 03:21:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mail.openembedded.org (Postfix) with ESMTP id 5D66D7CD22 for ; Fri, 1 Mar 2019 03:21:21 +0000 (UTC) Received: by mail-pl1-f169.google.com with SMTP id b65so7730567plb.6 for ; Thu, 28 Feb 2019 19:21:22 -0800 (PST) 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=yyaKd5ciArmS2wzuk8+FRSthTFeumlrOd2/sSgWxBSs=; b=eEBS7PeKXRFsDDSZKxFvIWhlu9Kc/2Oe5ZScDh8CwLvU9gfRwLpzPALrYuadnwiETg V0nsFB79qeuhocDkipgi5IoQ4OUuoV1pjnqdmGEwnbcxfBPsrhMJtVFhOGzsAN0DfB8P BF1Va+AC4d1BMKV88ax5Jfp8v6Oeiij9201Oyhz91TFHZFzc1n9o/WJ7Alm6qR1o5eWW VzOD4aR3oUeEjOtC6UsSXbiFZzPEwwW6uONJS0+SwwoWdQiYZTX1AlVb3RhoaElP55SA Muw2soB2lhk399+IHSpJE4o/gYLK7AEUjsv/qSuqWwsVWoNLlwMHQ1W/DA7YSrJN8LvF rV5w== 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=yyaKd5ciArmS2wzuk8+FRSthTFeumlrOd2/sSgWxBSs=; b=WSqvWUWE60jRbZUYKu8/ERivWe8v2HHOBRO+PlqhmDD8Xdk0+nqb49CLB47+qkeu85 Ev2ucbFsOuQJMA2+VyC91mafwo3AuBjgddGdWZCnpqeu70e2U9MQA+OJT9NuCcnZCis8 UF7IJF/Tpjii9jeaysi+Ib+0oNiAmQVNbR+8GDidHqkRrqymPE2XxqcVZNw3/e7XGBfX vAZJc2GrYimXVXXnFF0bPblaxzkizvHxFdfvc5oKrQbTBgCeZVLFQYOrbAWKhqFYspcG C6CagucrjaJV/Hd0ePGOAOvzmb4AO1GxoDQ+Qeamg6fC0Wu5bLe+3wxOiGCuP2HPQIPx +KiA== X-Gm-Message-State: APjAAAURsfOsE12inYVa7l9V/JkslKHYRROFJWFMjANeDhZbHszzuoAf 05ZnGV4errLD6ZieojEveGpJvKGG X-Received: by 2002:a17:902:a612:: with SMTP id u18mr3032171plq.145.1551410481881; Thu, 28 Feb 2019 19:21:21 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id z127sm37612096pfb.80.2019.02.28.19.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 19:21:21 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 28 Feb 2019 19:21:08 -0800 Message-Id: <20190301032112.38191-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH V3 1/5] bitbake.conf: Use -Og in DEBUG_OPTIMIZATION 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 -Og is for optimized debugging experience. this makes this consistent across different compilers especially gcc and clang, -O in clang is equal to -O2 where as in gcc its similar to -O1 so it was not giving consistent debugging experience across compilers Signed-off-by: Khem Raj --- v2: Change documentation to reflect the change and also build host flags v3: Rebase meta/conf/bitbake.conf | 4 ++-- meta/conf/documentation.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 1c5369ec98..85aab98462 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -610,10 +610,10 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" # Disabled until the option works properly -feliminate-dwarf2-dups FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" -DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" +DEBUG_OPTIMIZATION = "-Og -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" -BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" +BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" ################################################################## diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index 4d2a707563..c2c96ecf1e 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -125,7 +125,7 @@ D[doc] = "The destination directory." DATE[doc] = "The date the build was started using YMD format." DATETIME[doc] = "The date and time the build was started." DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable." -DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe'." +DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-Og -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe'." DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority." DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)." DEPLOY_DIR[doc] = "Points to the general area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system." From patchwork Fri Mar 1 03:21:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159450 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp223613jad; Thu, 28 Feb 2019 19:21:43 -0800 (PST) X-Google-Smtp-Source: APXvYqx3AhcH7HjoFaNIqzJEKqx/TQ0M0Tcv0yjxAACIsobII0EgvyAjtwGNkR5B3aadZ3QIMBA9 X-Received: by 2002:a17:902:bf05:: with SMTP id bi5mr3087714plb.259.1551410503511; Thu, 28 Feb 2019 19:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410503; cv=none; d=google.com; s=arc-20160816; b=BzaWYB1CeA69u8/P9vYLx8s6/8ETjTuhA8M3eCFfP/7161B092/qHQK6UVQOFgrsyB O9TuO7Ce8Ht0D4GL90MkImg/DUvfG0JSBgPKRX+DVwG3HChpa/Z1xcu3PBx7eSm4ChF/ y4ApX80T5fnIacv0Nslfvbvx/rqNVg9+pWJc/4L5R2YOxJnpbOB6ngoDuB9/Q5UB68aV 3Bv1VDy7rX8k+Ok6QBcKp7xatNR+LE1xc/Nbdsh2EvUocT1VmLXWAQyMa+PgpVnm+CUz qdIW9srjX7iyTG9AopA7wCh9E7VzrADx/JTxdnIEQ65+Ize5+T6RjQT+0cUDG8cJ4za3 SHSA== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=lVa6iCJlJY7BG3oITq3C51RvCO8poioY1xqNZatPfGw=; b=cvplHqmcpAZka4O4NzMKa1vo/9E2LN+Rt1H4W48dW74EVnMF9IDb5NH4677blKUhU6 zLNe0iXqAcaV5piRZNn8MgJ0mAFc6llaZl1ij3CQdj/EIo/uXP5cWMxesFY0hrgSZxO0 AhmwwLtCV6gmppdL5qT0dlEun6/NUnRxcyaIFFdCuh3dsTgQzsdeLNVjiWl9A53sV6/t 4t1G5xSGRw+k5JmqtfulB7fGoClI5Wd2h9KhVUWIEtc+mjLfoFvUjbC0lflxT6geTKLf 4gHtRSimpp2C+Hd1qWBU3qDhKYhML/n4Fda5XTEpLgKbUDmD4hQF+jF4wzRUDLY0Xzgn 1qbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Sqc5h6sM; 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 x9si19445281pfm.59.2019.02.28.19.21.43; Thu, 28 Feb 2019 19:21:43 -0800 (PST) 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=Sqc5h6sM; 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 1B1437CD45; Fri, 1 Mar 2019 03:21:41 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mail.openembedded.org (Postfix) with ESMTP id E63427CD1F for ; Fri, 1 Mar 2019 03:21:21 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id v11so5340086plg.9 for ; Thu, 28 Feb 2019 19:21:23 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=J9fo9gOTyk0RWWG53mcpCxia3zIWZnRojQ3I42bVGHg=; b=Sqc5h6sMu+P3Uz+O6hubWS3IOWjHlaPnRy0Iu1qHm65o2Rvtb958lvBnc4kWmnOCOL NJRz185BmHB2gqWQcDMf2vJ5ENV8MyKYi9aIZKu9QzOubhKoFRKhE0CtQVYzO+Xab4IS JgpzZdkdZ0jZQnTCIfp3nULxI+53gLVuNM9dxfR+oDGh5aKQRPg1Wvs45d12i5aWMBhc zIufeEbS31lFCy7FRqXK9Vlvope2sklbSqp/CFir8DaFieGFnwetgnK6L8MEQdVS7F+f RBYWDaOVRbUmPPtlZyxdT1kJoeOOgDJpTqj2nMyK84u1t3ltfFZXyn/n16RBYiHv1OcH 3o+g== 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:mime-version:content-transfer-encoding; bh=J9fo9gOTyk0RWWG53mcpCxia3zIWZnRojQ3I42bVGHg=; b=rWE+iDXkaHOPIoZcak8Bso7odv2DYqFknLus/E/zOfJmZ5+Ni33iql6zbBNycn66Aw fR+YoDa7CzgvH9qmaOPN24xtTGCTy6SsZVMQd1IVPPZv5wmHTjXz7l887mLZjOTY7pCX lw5VzEKVlVDdEXGX5zR/asKOQeYovL+IeUkcvqG1cbVov01Xtlfue5fnOpxnp0i+NKic gvmyK9LRVWC5POSYR+ARJoPRbqKO7utlmPZO09vd6imnBflkk/T54xQvAoj+m9gGPlXD 5u2skZWmX9aHzxdR6SQwbOrMsy53y6U38zkIQoLjLLhpZO3FE3K8OHFl9Ht/3wlZOuoq uFQQ== X-Gm-Message-State: APjAAAXcKk5W13S2THAIlG7L4d6yYYymR3KYWipjpQA1MwWWTi2p/ceT 0TCAMTKLeBDNmx605BhMo86mjYCa X-Received: by 2002:a17:902:4545:: with SMTP id m63mr3034223pld.71.1551410482609; Thu, 28 Feb 2019 19:21:22 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id z127sm37612096pfb.80.2019.02.28.19.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 19:21:22 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 28 Feb 2019 19:21:09 -0800 Message-Id: <20190301032112.38191-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190301032112.38191-1-raj.khem@gmail.com> References: <20190301032112.38191-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH V2 2/5] glibc: Disable Werror when building with debug options 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 Since compiler does not optimize away a lot of stuff we end up with Werrors e.g. ./sysdeps/ieee754/flt-32/s_log1pf.c: In function '__log1pf': ../sysdeps/ieee754/flt-32/s_log1pf.c:114:22: error: 'c' may be used uninitialized in this function [-Werror=maybe-uninitialized] 114 | + (k * ln2_lo + c))) - f); | ~~~~~~~~~~~~^~~~ which otherwise wont happen, so lets build with warnings-as-errors disabled in debug mode given we disable werror, now we don't have to restrict user to compile without -O0 Signed-off-by: Khem Raj --- v2: Rebased meta/recipes-core/glibc/glibc.inc | 9 --------- meta/recipes-core/glibc/glibc_2.29.bb | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) -- 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-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index b550abd877..252fd56c13 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc @@ -2,15 +2,6 @@ require glibc-common.inc require glibc-ld.inc require glibc-testing.inc -python () { - opt_effective = "-O" - for opt in d.getVar('SELECTED_OPTIMIZATION').split(): - if opt in ("-O0", "-O", "-O1", "-O2", "-O3", "-Os"): - opt_effective = opt - if opt_effective == "-O0": - bb.fatal("%s can't be built with %s, try -O1 instead" % (d.getVar('PN'), opt_effective)) -} - DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc-initial linux-libc-headers" PROVIDES = "virtual/libc" diff --git a/meta/recipes-core/glibc/glibc_2.29.bb b/meta/recipes-core/glibc/glibc_2.29.bb index c3e969d2f8..4577350eae 100644 --- a/meta/recipes-core/glibc/glibc_2.29.bb +++ b/meta/recipes-core/glibc/glibc_2.29.bb @@ -85,6 +85,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --disable-crypt \ --with-default-link \ --enable-nscd \ + ${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', '--disable-werror', '', d)} \ ${GLIBCPIE} \ ${GLIBC_EXTRA_OECONF}" From patchwork Fri Mar 1 03:21:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159451 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp223668jad; Thu, 28 Feb 2019 19:21:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyNuzhsDeq07IgK8w7+LJ920dItMCcOyZAdtjg+QK5De8Oi9O3iaEcR8j4s92rCVY13kxDB X-Received: by 2002:a65:624c:: with SMTP id q12mr2586333pgv.75.1551410508404; Thu, 28 Feb 2019 19:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410508; cv=none; d=google.com; s=arc-20160816; b=ZbAxDtG114u0257/vkv2TY2wX4GQ5AiDlD1MzArezP8eHPhKsgya8zcSInJup1npmz BMAeXof5GzsX4F9co0GVMiCAsCoajn9wvVxQhIU7X20onUrqVMDywLZRuFgFgKgEu7w5 QXk2EYaB5TLCEukh5hHlLRgXK88C+xNMVfVciEDIwDYVYcgALigTzfWNcWlaz0y9/0zL Qum4S3jsD5sTN+T6GZU0m/KjSi2CsWAZdb/sQQI5qkoJj+9n60/8fQa76X2uRJ75jLuY B2a1PMoRG/zGjPPhGwOlsM6YSV0D9u2AVmKIiD6X0Tr8/ZlXhmCZtVuqT2BE5nRM5Fg8 lGRQ== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=QgBE6b0OltfsprB9oBJFwvNUVsZ1dcH4xF8e4htprxM=; b=T05qA5pXJDxMpDRhgM6/29hWOWCHcTb+YuZJEzB5zJEQ+GKMZm5UAfjvmFVzzNYgXg HpbhEQ01kr73aTHGdGDvjwtp+lEPs5nal8FRle6VKXdNdHWvbT2nl5UxWdJxJAGDnThm 1kB4wJcnmHOPHy5B+mQmYFZmaZArkeK1KZ5nQCs2AWxyHzx38nGMXjQ5oni87RfNw+iK UOwBf0lxFMpSn7kWF+0AvMD5FFl0Gc+HaCdyuhw1qZ3XK7/32FIDwkkfU6SQBFZnyOIl 3aLJWDpHMd/OxOG/tiTeeNblWQACrikbgRRnInpXb5Sg/DA1Dw0UBy3yni7CzI9W8r1i UyrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=t0l+97u8; 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 m63si9339563pfj.107.2019.02.28.19.21.48; Thu, 28 Feb 2019 19:21:48 -0800 (PST) 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=t0l+97u8; 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 DAD747C6DA; Fri, 1 Mar 2019 03:21:42 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mail.openembedded.org (Postfix) with ESMTP id 97A487CD25 for ; Fri, 1 Mar 2019 03:21:22 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id k2so10758557plt.3 for ; Thu, 28 Feb 2019 19:21:24 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=D6fqh/fIl4r0ULGQ24EfCxZlOQPyOqC0KWFun4/Orsc=; b=t0l+97u8JNJSxComV4C0YjeS014ougvppHTSS/ubky9PSL/TPqr/GsmFnizGf+0N5i B/ft3wDObapZ/FXc7jgy2i2yI9BZ9+DoKxb8iuXicIY7DZnSm8UJ/NsdfJESOr2EisJ6 veXE0GEligZHptYC8Z5kZ4eUypXGKNIA/Usps2hmVkzGXUhIHmStHXsIO8rYL1PYjd3l crFhjxpiaLpveo9FIOYu5c30+ouC0E7fhMG8Zyd2tAj5ZfgJnYgBCzCWuUSBP9Km7xWN U9QsFxvpINoS+k7C6wcZwI38uGAfZ1zwhRzkByYvup7BU1g5JG1QAVt04uJB68cbrRIY cn2g== 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:mime-version:content-transfer-encoding; bh=D6fqh/fIl4r0ULGQ24EfCxZlOQPyOqC0KWFun4/Orsc=; b=RosHOvEm+fupCkNE6nyg8qHycGTy+4jzX4QS7eRKDjZ9KvvsD7TKLr6m2fi048If46 xViqNN55E6PHFrUf5vYtnOoG9t5vfz/1fnXapgsEb02cPyPzNabciqTgUn7q7BuumYHE wIzBJ9AFAMFTOSMipAuNkM6d7Te/TZBwenu6WQ1CuI5CHyL4YHg1QUMncviKBbSZkVj1 SY9ZwBWGB25TEPHT15w+qmXYpBnXg7/PpMoTuiit/AumG3e6NKKjl4ApM1HFJW/7W7qd 1rw9giDWZgtcz4Qw3Fch8sIas932oQcG3Qymttd+n2aO4okpeeAIIZQcQOGok/7cUIS3 QWqw== X-Gm-Message-State: APjAAAVhXQ8AXmUTUMttQPTCiLUNMRL15RV/7gpbRt0wFCvNCEWdEwzI 74Q0cdc++CfBicAimZjN6qGADtic X-Received: by 2002:a17:902:6686:: with SMTP id e6mr3099625plk.208.1551410483318; Thu, 28 Feb 2019 19:21:23 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id z127sm37612096pfb.80.2019.02.28.19.21.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 19:21:22 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 28 Feb 2019 19:21:10 -0800 Message-Id: <20190301032112.38191-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190301032112.38191-1-raj.khem@gmail.com> References: <20190301032112.38191-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/5] bitbake.conf: Drop -fno-omit-frame-pointer 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 Let -Og decide the best debugging experience Signed-off-by: Khem Raj --- meta/conf/bitbake.conf | 4 ++-- meta/conf/documentation.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 85aab98462..f1540a0acf 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -610,10 +610,10 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" # Disabled until the option works properly -feliminate-dwarf2-dups FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" -DEBUG_OPTIMIZATION = "-Og -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" +DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} -pipe" SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" -BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" +BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types', '-O2', d)} -pipe" BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" ################################################################## diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index c2c96ecf1e..550df20b0f 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -125,7 +125,7 @@ D[doc] = "The destination directory." DATE[doc] = "The date the build was started using YMD format." DATETIME[doc] = "The date and time the build was started." DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable." -DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-Og -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe'." +DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-Og ${DEBUG_FLAGS} -pipe'." DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority." DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)." DEPLOY_DIR[doc] = "Points to the general area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system." From patchwork Fri Mar 1 03:21:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159452 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp223726jad; Thu, 28 Feb 2019 19:21:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IavlOHlSfLTtWdyIDQvd12pxJrGOT+rttpgtXBq/O/EAyHXGfNSXGYv3lprNF54zHj+RJYg X-Received: by 2002:aa7:87c6:: with SMTP id i6mr3206977pfo.208.1551410514328; Thu, 28 Feb 2019 19:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410514; cv=none; d=google.com; s=arc-20160816; b=cP51AQML3l6kVM0sClg5JZPtRuT6Jq747X/nYtyfke5ZtkjUx5hypN51rQVlZS7Oyc EWiC4JhTeyawYHiw4yelWXVvE/iUOmye6/GFPhAUWQ2d/AiX1Xol0fY76pZ6bLoM82Mn cuBTuf4C19YAOEGiWysgmCBJQcqG/0jXSYilYTQAGAo1bsgDnKJiP1Lbrz0OTrxnOvkD vd3SC5GRxxry6EweV+w+h6zUr7LVy8eUvhj/f7r+q3tdUprgAHsthakm2Zccpxo1XAUu IbR4r4wvUJtsEeR71iVF5/GbgYiyjozD8/QA5kdt+XUN3wbSFAUxuZ6ub20dP33Cxn3S neoQ== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=7I1Go4sYug9+HxCmJ7vUtLf+b2TLb3Tal5u5iDti+8c=; b=YAMg3IJ/qWLyj2VoufcZqKU/noBf7gExXmSJqpAwiHcBpJ49FDGgbTxc4g/a/8MlA5 SnJ1KmcdQ1N58MuHzctSx/3AXYsgEgz+kgfoAjCSB1V3/0Lj2YKysqKm9R5Ok48uvbfi pM5a1nMMR7JGdClai+VJKiyAJ7L7YjQpZBdMckBUZPvpR6RRpBlKGHb5t5WqOSNeZWH7 5o/1NujVVZQU8ucMooZON8rhSN82p5MKPdLSlY8E5OcNDGYxK+rz19t+2+Hj+kneS2MZ nhrAEr8ya8uY+OmU/DLh4CftuiTMNb5cqalr67zQbgT58SOsuN+FzL6bP1he19YOTecE DLDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="o31xQ/X2"; 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 k63si19237211pgd.26.2019.02.28.19.21.54; Thu, 28 Feb 2019 19:21:54 -0800 (PST) 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="o31xQ/X2"; 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 04D447CD50; Fri, 1 Mar 2019 03:21:44 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 5E8ED7CD25 for ; Fri, 1 Mar 2019 03:21:23 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id s22so10732568pfh.4 for ; Thu, 28 Feb 2019 19:21:24 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=xQHSr6TedbUfkFQnHnM64nCEzoeek4N4xDN5zJCmMnE=; b=o31xQ/X2h9hsF62z0LHvNWOwA2zKUVZIZWVCrGTtBglQzm5Y7QRLw5S/hRyHB+VxzE m0rBFAUhgnvyT3T4BNPVPE4QKiPAO+l59XUBvx/z1lS9UbXqpnydgJJCd5LE/+HsyNnD Jd818tMmFxjGqjtU8S3nu1KGo5aUggBmqu71Nf9emhLBLFsKSB1hg2wYeeJUhMJ/URB1 2Ko9imOiiaATiifxcXzRSNC486AG834+bRvSWiHXkihIm2G93It+AkIls9/DxpE3QyfO cDoFYo2oHikKgZyo+FDg97o9CJRiaBl30DDWeTM6UALZahlr8nQRAq8FgKfu8eoTN2Ac vhHA== 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:mime-version:content-transfer-encoding; bh=xQHSr6TedbUfkFQnHnM64nCEzoeek4N4xDN5zJCmMnE=; b=VJetw8rbPGZRc6o+LIkMpxC95SAiEPTvwi6lV+74ENbdR602zeQRTLXJOyrVo4+4ZE OK4cCWG0NXdOb9FnY3n3nOZxjYxRMG/SeOm7+U2pwAatT+QyibfQsH0ecS6bMzINQv6I eqwfKMjpTy9XjnEUWe7GJaiWJB+sQfHSX5y+CgFfwQcfIk0x3IaLT8gDndyWEOeOuotn iLWI6fPuVm2VjRmRK0gjPkw9GLnvaKLgaIUrOkqDt703Dn+L3cg2MiZbaNtndqSvcpaw djizmAWJoGFe7btKMaYB+jaAWyaf+QkqUGYVAuLIFS/n+4cpuic2MxVxkCtLhLF6QEJT Hxgw== X-Gm-Message-State: APjAAAVclQGwgrycTraL9QIeX5velOwLr5DKVOzM5C7asjbyvdQW74iQ T8LM1IDTVRWuKTI4QlRIT+RnEtq5 X-Received: by 2002:a63:c204:: with SMTP id b4mr2623526pgd.335.1551410483963; Thu, 28 Feb 2019 19:21:23 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id z127sm37612096pfb.80.2019.02.28.19.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 19:21:23 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 28 Feb 2019 19:21:11 -0800 Message-Id: <20190301032112.38191-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190301032112.38191-1-raj.khem@gmail.com> References: <20190301032112.38191-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 4/5] perf: Set libunwind dir explicitly to point into staging sysroot 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 This helps it find the unwind library in sysroot always and not look around and confuse with host Signed-off-by: Khem Raj --- meta/recipes-kernel/perf/perf.bb | 1 + 1 file changed, 1 insertion(+) -- 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-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 515a78b859..9120766858 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -80,6 +80,7 @@ EXTRA_OEMAKE = '\ NO_GTK2=1 \ ${PACKAGECONFIG_CONFARGS} \ TMPDIR="${B}" \ + LIBUNWIND_DIR=${STAGING_EXECPREFIXDIR} \ ' EXTRA_OEMAKE += "\ From patchwork Fri Mar 1 03:21:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159453 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp223801jad; Thu, 28 Feb 2019 19:22:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzrIfUm4Y4ydere3cfYaqoIRYvbCSs+Zw/mOmugcXDXQHJcai/Wl+aRiH7ZF7p7OSY89vOh X-Received: by 2002:a17:902:6684:: with SMTP id e4mr3134667plk.90.1551410520238; Thu, 28 Feb 2019 19:22:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410520; cv=none; d=google.com; s=arc-20160816; b=N7Geo4JukuU7qvuo88SMXHMSZTXvzI7kqJYoKswO4r3g2nJ5zfcjW10HeucjwqTHbL ewFy6/dDNUaQ7XxIbVOkhaaVFY3OKJr37pPscOmjmB2MsMajCOlrTebL+QQgQj7eAIw+ XtimenIKrwA1JziYTTfvNNsFAEGX8Eirv6V/+OCrJ+O4W3c5ngGYn/MAB1HMkbIv7iTE 2H1A77ojU4H3FVrn572zbnhYqcOnCpGlP//BQ8jpLKf9XGwuqpT8mxujSDAH05jNK2o/ D6vmmxKF6V9RVfvxDEMcvtgR8OtufgPPgb4T9s4NQer26lvBjsj/ew9BcUjemVTwTOlE 88GA== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=7GC5l2v8eqMsCmYXFMLKLmn7ohXvsqpH8j8Dp53PX70=; b=WUg7pWpL+sK6GdwnoUfdZgJ/yXTwus8JPezrTF9IeE0M6ZYQSYKe7Y/EtXuypOJ5nY vimpKyuE15bzCbBvCLLF99Oh0GmSqLhVvt6+3r5AHYzW0a3LVt5gOQXBedK6C+T+KoCd Q30avhnYQ2hC5Jr9UxgzkzD5a00vR9GnoRG8aBFSmIOsOXEds0xyFana60EVGMxmYXSb ONUrde/kHqReiEntRv7DRCXrWI3rxmaVdSVz5jn71Cf6/02CRtPkfCTcvMGolkwm1kLq clJR7/bOgYjpZ8Xd3N1uD4+O5TAfRNtIOi/4Iuq85oCk4msZAzaxdkLCcUdTE177bVLG 9dkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OC06b4gW; 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 d73si20614244pfm.210.2019.02.28.19.21.59; Thu, 28 Feb 2019 19:22:00 -0800 (PST) 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=OC06b4gW; 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 26E227CD55; Fri, 1 Mar 2019 03:21:45 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id EAED17CD45 for ; Fri, 1 Mar 2019 03:21:23 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id m10so10743158plt.10 for ; Thu, 28 Feb 2019 19:21:25 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=YZUujBytv4bg6vzgI91E1O1iuswu3Hf2Of0soEOI1LQ=; b=OC06b4gWiebHjbYL7QVFDkuacwwYSJHxEy4dGEMnjS/peF5NtOv1F+P3XzFgN8hbtS BsOjtq0IBjgPUM5Av39JvujiIo0bB3Ix//92Jvwmghc644FRmyVqLE+g9RxRTpUqw+L8 frB3kHAtYx5hqPeDkON9h94Ue288tcL6VFA/ZcIA0BqpP8K3TMyCsUTCtCv82rrzEsW8 tusDKvS/VVbEhiXwMxz0ODE+ZhDJzRcV8DgDQ9oyFtL6VaTpW+aJb9N5tgT4zqvyssIQ KtC5jYIzdef1X8o9x1uyysWb1YRNgPV/lkqP39PoGUF5BTvAKBh6nsukAeL5GE4WU58B W7Pg== 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:mime-version:content-transfer-encoding; bh=YZUujBytv4bg6vzgI91E1O1iuswu3Hf2Of0soEOI1LQ=; b=ZAVci9I98Jq0hUzFxZj+pKwxMjrmIOAgUcMXAO/slHhrr/tAnjKU+i+1lkIr3QUUUj qG5VB2PZxRm6fLuZafYkDR3N3Pn6yP9s+UsifL35Nxj9M+PIeUxvusyrLRYFrG24AQLy asjBnOIN06jaV++VhxVlEXjcO71/VrjP8wTP5Jc1eJggUJK7PMaO1UEwH5b+fl60/xDJ yAF2jwLfXppvhWt5nNF3fPqakeV7DfI1Lgu6EBZME7uknbsB5bHUTj6AvkpQ3eQSD06+ 2FwCXVdnK2fvnYsgE+fkLri79Vd7FGDvquD/zVJQMwBgymrBHWUTehuVbWRjMq5MWAOL hwYw== X-Gm-Message-State: APjAAAV3R3sMtW8WeFzbZ4NzQF8GsWydMYdvNLy/bV/fB9AF3mqnprG5 zbo7kSgKtkpJ+qbt4Ph/iCBc1K9V X-Received: by 2002:a17:902:7604:: with SMTP id k4mr3136487pll.232.1551410484669; Thu, 28 Feb 2019 19:21:24 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id z127sm37612096pfb.80.2019.02.28.19.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 19:21:24 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 28 Feb 2019 19:21:12 -0800 Message-Id: <20190301032112.38191-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190301032112.38191-1-raj.khem@gmail.com> References: <20190301032112.38191-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 5/5] musl: Fix out of bounds data access in dlopen 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 Signed-off-by: Khem Raj --- .../musl/musl/out_of_bounds_read.patch | 20 +++++++++++++++++++ meta/recipes-core/musl/musl_git.bb | 1 + 2 files changed, 21 insertions(+) create mode 100644 meta/recipes-core/musl/musl/out_of_bounds_read.patch -- 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-core/musl/musl/out_of_bounds_read.patch b/meta/recipes-core/musl/musl/out_of_bounds_read.patch new file mode 100644 index 0000000000..a681cc284e --- /dev/null +++ b/meta/recipes-core/musl/musl/out_of_bounds_read.patch @@ -0,0 +1,20 @@ +Fix out of bounds read + +self->dtv hasn't been extended yet + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +diff --git a/ldso/dynlink.c b/ldso/dynlink.c +index e2c3259f..b23ea0df 100644 +--- a/ldso/dynlink.c ++++ b/ldso/dynlink.c +@@ -1374,7 +1376,7 @@ static void install_new_tls(void) + } + /* Install new dtls into the enlarged, uninstalled dtv copies. */ + for (p=head; ; p=p->next) { +- if (!p->tls_id || self->dtv[p->tls_id]) continue; ++ if (p->tls_id <= old_cnt) continue; + unsigned char *mem = p->new_tls; + for (j=0; j