From patchwork Mon Aug 14 04:39:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mayuresh Chitale X-Patchwork-Id: 1820839 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=m/shbJSm; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=jhT7kFbW; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RPMCg0Lvzz1yfS for ; Mon, 14 Aug 2023 14:40:45 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kCVTgS5WOMOLO4zTeGYPTRQbHXmAzal4qAuOs1/9Lkk=; b=m/shbJSm3AZToP lL08Ym0dTxSkAMQkMI+U0ht9umYthXokYPHiMrgLugOGYsFMweXqOEqwFNw2jvBAfefZZ1HW5NFKP n5Whim2dEP3pEsRUvMVmeYJ+4B+pMnaAMQ2VXTe2gxKEn1Q4t6DXQ8IALg/KAegZbIQJZnjW7rrAS RaWueQC0Ul2DD32I25MhXkOHjqV6MXBmOJAWM43lY2kj49vpvahEvgPIlw0Q2dCsj14CNlNenw4pb AKe2ju9oAz12jIkngfkLigsz4Zyu2Sv/jUDua1YyGUmW7/VAXDf6nQmQ9XVdfhR2nQV6UYCgWa3sk 7eVJ8rccotckW8wHog5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVPNI-00G8gF-1p; Mon, 14 Aug 2023 04:40:16 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVPNG-00G8fv-0f for opensbi@lists.infradead.org; Mon, 14 Aug 2023 04:40:15 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-686ba29ccb1so2582368b3a.1 for ; Sun, 13 Aug 2023 21:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691988012; x=1692592812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gjgXGmBFKHSpTY96q5wfeyLB5o+hb+GlAysuxHBunwQ=; b=jhT7kFbWczsbn0BmUl8cTtT2ErGaGfAwwyShGh9asQ2BSegDjZKnIdiCEkENPkp5dD Vj3/pa89afTT7u+G1NiowmpTcbJ2SYwPI+jIohA8/B46paCwJv5Q1pWi53LIzSqCfQvk IubTH7LP54L1kvgm4Cw6ZX1e1pAIAmtYh/dyS6vZ0o3WGxLX0EjPUnH4flB2SJWcx4+f Icna8LbWA9rmOYdQezK1oq4LYgyTOAxwcdTIar+s1Azjfd0xwCL6m0VdjFrkNDi/gMKD RKSkfUeZgFglOetIx2f5QZuUqnNQ8e8GvMHTNf5n66F5PkwZl3LBVXgkghkAnfReaLSM mSCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691988012; x=1692592812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gjgXGmBFKHSpTY96q5wfeyLB5o+hb+GlAysuxHBunwQ=; b=iDdyZ0SvU93CNcT9BaARvLFhfRz5LQo3RSCcCH4qxgjBvb6WUNV81qQ5T6ZmAJZe7t +CSiXuVVECi64s1GlSznrTiflcT+If22DS+RzntXlAGtq+3d500DkkDkqT5stIi7GRih w/nMXEKu+pkmU5Ja9G15/eilEmmsaBkhgdu4i3bfgS5CYWvyrCuOjRd1k6Cl+3hoEOe1 ZGa2mGpozlmTRMtkOErYeCin2MBeRLd3E/wdjOUAGN1LMlnzGK0XDORnOTAOqvviT9L9 EGLiJdWSSiuMtp3qGaJl5fSPGrSTsoBHGgA9a+dlAGnQPq8z/NFoUn2jUHcpjZSHARDp K13Q== X-Gm-Message-State: AOJu0YyS9klRoQw8ij3K2yiSpd2HaHnNdDC7+MbEf4EyccMMbAYEOZqy Tonz1bjzREHT+Y2TM7u8Edje6M5aEZq6DsYiB1+lXg== X-Google-Smtp-Source: AGHT+IG/ZEqZBdL3u3885++SNGTqS9YCgZX/BcFjyLb8LF9QlisH97ouldR+8Ma9uH9zw6XUOsx/Zg== X-Received: by 2002:a05:6a00:a89:b0:676:8fac:37 with SMTP id b9-20020a056a000a8900b006768fac0037mr9992405pfl.4.1691988012583; Sun, 13 Aug 2023 21:40:12 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id y17-20020aa78551000000b00687fcb2ba7csm6977882pfn.103.2023.08.13.21.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 21:40:11 -0700 (PDT) From: Mayuresh Chitale To: opensbi@lists.infradead.org Cc: Mayuresh Chitale , Jeff Law Subject: [PATCH] Makefile: Force GNU hashing Date: Mon, 14 Aug 2023 10:09:59 +0530 Message-Id: <20230814043959.390101-1-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230813_214014_268414_CE08D5CA X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The Yocto QA step verifies that binaries and DSOs use DT_GNU_HASH rather than DT_HASH. If the linker is called directly, then we need to make sure to pass in the hashing style. Signed-off-by: Jeff Law Signed-off-by: Mayuresh Chitale --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:435 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The Yocto QA step verifies that binaries and DSOs use DT_GNU_HASH rather than DT_HASH. If the linker is called directly, then we need to make sure to pass in the hashing style. Signed-off-by: Jeff Law Signed-off-by: Mayuresh Chitale --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 730dbd9..7fb8d2d 100644 --- a/Makefile +++ b/Makefile @@ -161,7 +161,7 @@ ifeq ($(LD_IS_LLD),y) RELAX_FLAG = -mno-relax USE_LD_FLAG = -fuse-ld=lld else -USE_LD_FLAG = -fuse-ld=bfd +USE_LD_FLAG = -fuse-ld=bfd -Wl,--hash-style=gnu endif # Check whether the linker supports creating PIEs