From nobody Mon Feb 9 21:21:47 2026 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+103343+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+103343+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1682052350; cv=none; d=zohomail.com; s=zohoarc; b=eY3iHX02onwJhr1+hAFw8gN4JasEOR4nBHPef9vU9AIxRs/Z0OXhzsyuPjp0bROOSC5d2McQFY2Md55LJaCJm7FwRRodXf0y/7jwhFDTU7a3BA9xc+79Z6li6sQHcob9F8XboTHQGxfD4e61E3w3vy/pHUqlKD3vNTvJ77NDdd0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682052350; 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=pR5J9ds3v8vG0vPmZs4gW9RTIEEdatTR9b9R5tCFDkg=; b=DzldQtCTN6nxky1eQqsrWJ4WZ1JW4RRhszz3X3tZLcVE0jCx3yDsDapxQR4RzcNKOeT6i073qI6ZXpVuR/iTKGjiOdUMT+9YMsmXd6AtIuwcfC8isUr+1HzkY+hg83An7Q2O5nfu61XO+FAML56hRV4thLwJymyh1U5Y1u582+E= 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+103343+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 1682052350368205.23159748750163; Thu, 20 Apr 2023 21:45:50 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id XhXzYY1788612xLMyc3PElNA; Thu, 20 Apr 2023 21:45:50 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.4717.1682052343581550185 for ; Thu, 20 Apr 2023 21:45:43 -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-465-k2YKUdFyPLqaI1B9qeYkCQ-1; Fri, 21 Apr 2023 00:45:39 -0400 X-MC-Unique: k2YKUdFyPLqaI1B9qeYkCQ-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B844F3C0E44D; Fri, 21 Apr 2023 04:45:38 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B3672026D16; Fri, 21 Apr 2023 04:45:38 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 636F818000B3; Fri, 21 Apr 2023 06:45:35 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Yuwei Chen , Oliver Steffen , Bob Feng , =?UTF-8?q?Marvin=20H=C3=A4user?= , Daniel Schaefer , Chao Li , Dongyan Qian , Michael D Kinney , Pawel Polawski , Baoqi Zhang , Leif Lindholm , Rebecca Cran , Zhiguang Liu , Sunil V L , Ard Biesheuvel , Liming Gao , Gerd Hoffmann Subject: [edk2-devel] [PATCH v5 02/10] MdePkg: don't set visibility to hidden Date: Fri, 21 Apr 2023 06:45:27 +0200 Message-Id: <20230421044535.4030762-3-kraxel@redhat.com> In-Reply-To: <20230421044535.4030762-1-kraxel@redhat.com> References: <20230421044535.4030762-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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: I4Bvmv1SSZawgI056ByY57ZXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1682052350; bh=kAOrEe4MSFpCsAykPeZ8YKM2yxeE6MEpXC0VLcqqhjg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vVQ2bghOCYmJEARBbVKmjamoxj1rpobJ/0k2EZDM1I5oeBVafncEwTGgSWyGh2qb4jz l9shuYbndV6U3hnYFTYDT0aY77z4YRtGks4NmLyVGH9BYvP52XCSNiSdrKkUkC7QHlzNh Bim7qwkigVN8jdQLOkbJE6CXW8vhAFHyPhM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1682052350551100026 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 --- 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 f0a4d00142b9..afbb4b6273fb 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.0 -=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 (#103343): https://edk2.groups.io/g/devel/message/103343 Mute This Topic: https://groups.io/mt/98404595/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-