Add a temp BasePeCoffLib that deals with MOVT instruction. At this point we don't know how the PE/COFF spec will change, but we can merge the real change into the MdePkg when the PE/COFF spec is updated and remove this library. To be clear I made up the PE/COFF relocation extension for these relocations, but as long as the tools match it all works.... Mainly doing this to support gcc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10762 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
53
ArmPkg/Library/BasePeCoffLib/BasePeCoffLib.inf
Executable file
53
ArmPkg/Library/BasePeCoffLib/BasePeCoffLib.inf
Executable file
@@ -0,0 +1,53 @@
|
||||
## @file
|
||||
# PE/COFF Loader Library implementation.
|
||||
# The IPF version library supports loading IPF and EBC PE/COFF image.
|
||||
# The IA32 version library support loading IA32, X64 and EBC PE/COFF images.
|
||||
# The X64 version library support loading IA32, X64 and EBC PE/COFF images.
|
||||
#
|
||||
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php.
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = MovtBasePeCoffLib
|
||||
FILE_GUID = 11D2AB02-24BD-468b-BB84-E1CD5330BB13
|
||||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = PeCoffLib
|
||||
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF EBC ARM
|
||||
#
|
||||
|
||||
[Sources]
|
||||
BasePeCoffLibInternals.h
|
||||
BasePeCoff.c
|
||||
|
||||
[Sources.IA32, Sources.X64, Sources.EBC]
|
||||
PeCoffLoaderEx.c
|
||||
|
||||
[Sources.IPF]
|
||||
Ipf/PeCoffLoaderEx.c
|
||||
|
||||
[Sources.ARM]
|
||||
Arm/PeCoffLoaderEx.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
DebugLib
|
||||
PeCoffExtraActionLib
|
||||
BaseMemoryLib
|
||||
|
Reference in New Issue
Block a user