From nobody Mon Feb 9 00:42:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+48961+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+48961+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571099248; cv=none; d=zoho.com; s=zohoarc; b=n8oNgGODhH8RpC5+hNMTjlpFCDaOYtecthtVBWzGHpVgVSnOVROWkcdYxGWOJNlik8PETD2wHE3YPBoIWS/x0fA53fhTDpFMEx4EIY3Mo+zNInWLSCO7TkR7/vPUQt9l1emTw0MhWqfKz69XUktegXLTmuREn26GuquLYHSPdSI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571099248; h=Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=HLLYTXh6HFp2/TPKItn/zkxp41djjQUWMvO3aEkV42g=; b=L6OrQw9nNL8vDjy8bX56vTRZvv0fMI4tGly7dyNrsSchuTT6AJBGfsulMgTGjkmOJqUFBLcyBr2r+iZdgAFrXfqp7mrryZXRJ8DuWGEKjO6ctY13GEKHUeIv8zdeXHde71g8+7xrpncVtuyhAjGw2b6ea5zxM0n1UBHLquqPjF0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+48961+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1571099248463412.0535408516321; Mon, 14 Oct 2019 17:27:28 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id C3weYY1788612xd65RX3WyvJ; Mon, 14 Oct 2019 17:27:27 -0700 X-Received: from mga12.intel.com (mga12.intel.com []) by mx.groups.io with SMTP id smtpd.web12.2007.1571099241220744311 for ; Mon, 14 Oct 2019 17:27:27 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 17:27:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,296,1566889200"; d="scan'208";a="194363382" X-Received: from shwde7172.ccr.corp.intel.com ([10.239.158.22]) by fmsmga008.fm.intel.com with ESMTP; 14 Oct 2019 17:27:26 -0700 From: "Liming Gao" To: devel@edk2.groups.io Subject: [edk2-devel] [Patch v2 09/11] CryptoPkg IntrinsicLib: Make _fltused always be used Date: Tue, 15 Oct 2019 08:26:48 +0800 Message-Id: <1571099210-12432-10-git-send-email-liming.gao@intel.com> In-Reply-To: <1571099210-12432-1-git-send-email-liming.gao@intel.com> References: <1571099210-12432-1-git-send-email-liming.gao@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,liming.gao@intel.com X-Gm-Message-State: Gf44vwRI2XSWNcoiskS99X9Dx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571099247; bh=IUCoSgaigcxyX7s/dbPvzfix8aTyjZ9zDHo4mH+es0s=; h=Date:From:Reply-To:Subject:To; b=j5xw0XnKV7OatjlYhllfgNQ6bYp2I1c6EWUfSTDJyTg6GAz3m3RA+FgY3dT/65E7H4e L7/5UxJWfFqxd21K/n17mimTOA3N4wAh318t0WmIDqBt3JkNaqv1ayDKNV0TUPWBCYxmi 6iw0h+qx6hSipNQxAkZiVcnjpiW+jz4Xg5o= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" With this change, global variable _fltused will not be removed by LTO Signed-off-by: Liming Gao Reviewed-by: Jian J Wang Reviewed-by: Philippe Mathieu-Daude --- CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c b/CryptoPkg/= Library/IntrinsicLib/MemoryIntrinsics.c index 6e4d4a68cc..94fe341bec 100644 --- a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c +++ b/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c @@ -2,7 +2,7 @@ Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based Cryptographic Library. =20 -Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -13,9 +13,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =20 typedef UINTN size_t; =20 +#if defined(__GNUC__) || defined(__clang__) + #define GLOBAL_USED __attribute__((used)) +#else + #define GLOBAL_USED +#endif + /* OpenSSL will use floating point support, and C compiler produces the _f= ltused symbol by default. Simply define this symbol here to satisfy the linker= . */ -int _fltused =3D 1; +int GLOBAL_USED _fltused =3D 1; =20 /* Sets buffers to a specified character */ void * memset (void *dest, int ch, size_t count) --=20 2.13.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#48961): https://edk2.groups.io/g/devel/message/48961 Mute This Topic: https://groups.io/mt/34540592/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-