From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.148.1591637672938329769 for ; Mon, 08 Jun 2020 10:34:33 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9B7101FB; Mon, 8 Jun 2020 10:34:32 -0700 (PDT) Received: from localhost.localdomain (unknown [10.37.8.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B22BB3F73D; Mon, 8 Jun 2020 10:34:30 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Bob Feng , Liming Gao , Laszlo Ersek , Leif Lindholm , Ilias Apalodimas , Julien Grall , Jiewen Yao Subject: [PATCH 4/4] ArmVirtPkg: remove unused files Date: Mon, 8 Jun 2020 19:34:13 +0200 Message-Id: <20200608173413.1100679-5-ard.biesheuvel@arm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608173413.1100679-1-ard.biesheuvel@arm.com> References: <20200608173413.1100679-1-ard.biesheuvel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable We no longer use ELF PIE executables to implement the self-relocating PrePi so drop the custom linker script and visibility override header file. Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/Include/Platform/Hidden.h | 22 ----------- ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds | 41 -------------------- 2 files changed, 63 deletions(-) diff --git a/ArmVirtPkg/Include/Platform/Hidden.h b/ArmVirtPkg/Include/Plat= form/Hidden.h deleted file mode 100644 index 7a7bdb42b8bd..000000000000 --- a/ArmVirtPkg/Include/Platform/Hidden.h +++ /dev/null @@ -1,22 +0,0 @@ -/** @file=0D -=0D - Copyright (c) 2018, Linaro Limited. All rights reserved.=0D -=0D - SPDX-License-Identifier: BSD-2-Clause-Patent=0D -=0D -**/=0D -=0D -#ifndef __PLATFORM_HIDDEN_H=0D -#define __PLATFORM_HIDDEN_H=0D -=0D -//=0D -// Setting the GCC -fvisibility=3Dhidden command line option is not quite = the same=0D -// as setting the pragma below: the former only affects definitions, where= as the=0D -// pragma affects extern declarations as well. So if we want to ensure tha= t no=0D -// GOT indirected symbol references are emitted, we need to use the pragma= , or=0D -// GOT based cross object references could be emitted, e.g., in libraries,= and=0D -// these cannot be relaxed to ordinary symbol references at link time.=0D -//=0D -#pragma GCC visibility push (hidden)=0D -=0D -#endif=0D diff --git a/ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds b/ArmVirtPkg/PrePi/Scri= pts/PrePi-PIE.lds deleted file mode 100644 index c9a15ca3493a..000000000000 --- a/ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds +++ /dev/null @@ -1,41 +0,0 @@ -/** @file=0D -=0D - Copyright (c) 2015, Linaro Ltd. All rights reserved.
=0D -=0D - SPDX-License-Identifier: BSD-2-Clause-Patent=0D -=0D -**/=0D -=0D -SECTIONS=0D -{=0D - PROVIDE(__reloc_base =3D .);=0D -=0D - . =3D PECOFF_HEADER_SIZE;=0D - .text : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D - *(.text .text*)=0D - *(.got .got*)=0D - *(.rodata .rodata*)=0D - *(.data .data*)=0D - *(.bss .bss*)=0D -=0D - . =3D ALIGN(0x20);=0D - PROVIDE(__reloc_start =3D .);=0D - *(.rel .rel.*)=0D - *(.rela .rela.*)=0D - PROVIDE(__reloc_end =3D .);=0D - }=0D -=0D - .note (INFO) : { *(.note.gnu.build-id) }=0D -=0D - /DISCARD/ : {=0D - *(.note.GNU-stack)=0D - *(.gnu.hash)=0D - *(.gnu_debuglink)=0D - *(.interp)=0D - *(.dynamic)=0D - *(.dynsym)=0D - *(.dynstr)=0D - *(.hash)=0D - *(.comment)=0D - }=0D -}=0D --=20 2.26.2