diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-24 09:43:50 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-27 18:22:35 +0000 |
commit | 2c936d7c39ba4305e2da39ef2059326802a42bd2 (patch) | |
tree | e93fb7378aebdb0967672829c261981e5a6163d7 /ArmVirtPkg/PrePi/PrePi.c | |
parent | d1de487dd2e77f4741abcbd71d19a8c93971fda0 (diff) | |
download | edk2-2c936d7c39ba4305e2da39ef2059326802a42bd2.tar.gz edk2-2c936d7c39ba4305e2da39ef2059326802a42bd2.tar.bz2 edk2-2c936d7c39ba4305e2da39ef2059326802a42bd2.zip |
ArmVirtPkg/PrePi: don't export PE/COFF and LZMA libraries via HOBs
The PrePi code we inherited from ArmPlatformPkg contains a rather
obscure optimization, where entry points of the PE/COFF and LZMA
handling routines are recorded in special HOBs, allowing DXE core
to call into that code directly rather than carry its own copy of
these libraries.
Given that no ArmVirtPkg platforms actually include the library
resolutions* that take advantage of these optimizations, let's not
bother with them, and remove the associated code.
* EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'ArmVirtPkg/PrePi/PrePi.c')
-rwxr-xr-x | ArmVirtPkg/PrePi/PrePi.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index fce4ab9428..f6abe2f201 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -17,7 +17,6 @@ #include <Library/PrePiLib.h>
#include <Library/PrintLib.h>
-#include <Library/PeCoffGetEntryPointLib.h>
#include <Library/PrePiHobListPointerLib.h>
#include <Library/TimerLib.h>
#include <Library/PerformanceLib.h>
@@ -25,10 +24,8 @@ #include <Ppi/GuidedSectionExtraction.h>
#include <Ppi/ArmMpCoreInfo.h>
-#include <Guid/LzmaDecompress.h>
#include "PrePi.h"
-#include "LzmaDecompress.h"
VOID
EFIAPI
@@ -98,14 +95,6 @@ PrePiMain ( // SEC phase needs to run library constructors by hand.
ProcessLibraryConstructorList ();
- // Build HOBs to pass up our version of stuff the DXE Core needs to save space
- BuildPeCoffLoaderHob ();
- BuildExtractSectionHob (
- &gLzmaCustomDecompressGuid,
- LzmaGuidedSectionGetInfo,
- LzmaGuidedSectionExtraction
- );
-
// Assume the FV that contains the SEC (our code) also contains a compressed FV.
Status = DecompressFirstFv ();
ASSERT_EFI_ERROR (Status);
|