From nobody Fri Dec 19 04:32:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+105254+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+105254+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1684937175; cv=none; d=zohomail.com; s=zohoarc; b=mzSV4f65ANlels4mF7Q/Rhkw/a+Fxy1H4daoau3vB0aOi1tQtoXuxxExaXPY/U7Yir3Fy2VyUBewv1QDB4KkU7zJmWTsMUJr4i4Ci1/96F5Ygp6CWtisuGRqm5P9FxTbqQAMF0EUbALcvKFxHeIUEr5m2VPf/m2Vww/VG6wuiIw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684937175; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=upSGg6qRA9d9fD3ptQ1KrwRVhN+d+fv002cnLfbB6fE=; b=SeoFGDp8Tw0mEmh3gkDLGkUE6tbki3oxydrqcnc31Rv8MyRPQA5orxPr8I0+1TLU4DZwEb/YN0r747dkkcnisz+6YF3u5PAEin9VKNfw9IMiodi95FORH5dV5Yaa9DqvVnKqWLzkmMWOFEY3fJ/TaU9D4KvYutNlsTsOpskbILQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+105254+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 168493717572736.52491178988498; Wed, 24 May 2023 07:06:15 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id dOjTYY1788612x0aKWRMT1el; Wed, 24 May 2023 07:06:15 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.9764.1684937173167066504 for ; Wed, 24 May 2023 07:06:13 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-114-uUBERzs_M2CScSLEB8Wy9w-1; Wed, 24 May 2023 10:06:08 -0400 X-MC-Unique: uUBERzs_M2CScSLEB8Wy9w-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 73D4B1C0ED0A; Wed, 24 May 2023 14:06:04 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DF6F400F1F; Wed, 24 May 2023 14:06:04 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A420718012CF; Wed, 24 May 2023 16:06:00 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Daniel Schaefer , =?UTF-8?q?Marvin=20H=C3=A4user?= , Rebecca Cran , Oliver Steffen , Liming Gao , Pawel Polawski , Chao Li , Ard Biesheuvel , Bob Feng , Sunil V L , Michael D Kinney , Leif Lindholm , Dongyan Qian , Yuwei Chen , Baoqi Zhang , Zhiguang Liu , Gerd Hoffmann Subject: [edk2-devel] [PATCH v6 03/11] MdePkg: don't set visibility to hidden Date: Wed, 24 May 2023 16:05:52 +0200 Message-Id: <20230524140600.1432056-4-kraxel@redhat.com> In-Reply-To: <20230524140600.1432056-1-kraxel@redhat.com> References: <20230524140600.1432056-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: PRIVCUC6fkIfiRqe25l04S8Bx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684937175; bh=D8k0MIZ+D9rdo46Lr6cnlch0c9eakWzy1ppMVZ2S66o=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=DVFJU0ez4HxSsGv+r81jRgEP7zYjqcXSeyY3ooGdUUWIQaUXti9307IK+aO6ASFU0wO v21M0iCMca6NgXoDJDRfAQ5zG4iNFHtIvUFFO6m9isUsqnmMbL4G5lI1DZN6JHpFfT4Lf +zsuor0zEfWa7GYqPEeBKUv5LKg5C3i5Qho= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684937177031100012 Content-Type: text/plain; charset="utf-8"; x-default="true" Not needed any more on modern toolchains, they are better in not creating a GOT without this trick. Signed-off-by: Gerd Hoffmann Reviewed-by: Liming Gao Reviewed-by: Rebecca Cran --- MdePkg/Include/X64/ProcessorBind.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/Proces= sorBind.h index cdbb4fd6d3d1..bc152ea761f9 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -21,20 +21,6 @@ #pragma pack() #endif =20 -#if defined (__GNUC__) && defined (__pic__) && !defined (USING_LTO) && !d= efined (__APPLE__) -// -// Mark all symbol declarations and references as hidden, meaning they will -// not be subject to symbol preemption. This allows the compiler to refer = to -// symbols directly using relative references rather than via the GOT, whi= ch -// contains absolute symbol addresses that are subject to runtime relocati= on. -// -// The LTO linker will not emit GOT based relocations when all symbol -// references can be resolved locally, and so there is no need to set the -// pragma in that case (and doing so will cause other issues). -// - #pragma GCC visibility push (hidden) -#endif - #if defined (__INTEL_COMPILER) // // Disable ICC's remark #869: "Parameter" was never referenced warning. --=20 2.40.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 (#105254): https://edk2.groups.io/g/devel/message/105254 Mute This Topic: https://groups.io/mt/99109299/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-