From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=210.71.195.42; helo=out03.hibox.biz; envelope-from=tim.lewis@insyde.com; receiver=edk2-devel@lists.01.org Received: from out03.hibox.biz (out02.hibox.biz [210.71.195.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EFB692096DCEB for ; Fri, 18 May 2018 15:22:08 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2ChBgDjT/9a/w00GKxdHgEGDIJNdkIff?= =?us-ascii?q?Yx/jkUBXY4/hm8LKwGEOgSCFCI4FAECAQEBAQEBAmwohTcCIykIKAUGBwlSIBA?= =?us-ascii?q?BDgEEHgWDFYEbZKt4GgKEPINvgieKCT+IaHKFCAKNBItIBwICgWmMbId0hQkrk?= =?us-ascii?q?EyBJTMhgVJwgxQ+kC8fgT0IDAGMFoJFAQE?= X-IronPort-AV: E=Sophos;i="5.49,416,1520870400"; d="scan'208,217";a="7615886" Received: from unknown (HELO hb3-BKT203.hibox.biz) ([172.24.52.13]) by out03.hibox.biz with ESMTP; 19 May 2018 06:22:06 +0800 Received: from unknown (HELO hb3-BKT102.hibox.biz) ([172.24.51.12]) by hb3-BKT203.hibox.biz with ESMTP; 19 May 2018 06:22:05 +0800 Received: from unknown (HELO hb3-IN01.hibox.biz) ([172.24.12.11]) by hb3-BKT102.hibox.biz with ESMTP; 19 May 2018 06:22:05 +0800 X-Remote-IP: 73.116.1.175 X-Remote-Host: c-73-116-1-175.hsd1.ca.comcast.net X-SBRS: -10.0 X-MID: 11603411 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com hiBox-Sender: 1 Received: from c-73-116-1-175.hsd1.ca.comcast.net (HELO DESKTOPAVHFBJF) ([73.116.1.175]) by hb3-IN01.hibox.biz with ESMTP/TLS/AES256-SHA; 19 May 2018 06:22:03 +0800 From: "Tim Lewis" To: Date: Fri, 18 May 2018 15:22:00 -0700 Message-ID: <03b101d3eef6$a5f4dd90$f1de98b0$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-index: AdPu9mNaq0U5HhCQSYSVpekIn2LMEg== X-Content-Filtered-By: Mailman/MimeDel 2.1.26 Subject: Does __attribute__ ((selectany)) make sense now for GCC? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 22:22:11 -0000 Content-language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In Visual Studio we have __declspec(selectany) to limit the impact of unused data. I see that GCC for Windows has __attribute__ ((selectany)). Should we me using this for GLOBAL_REMOVE_IF_UNREFERENCED in MdePkg\Include\Base.h? Tim