mirror of https://github.com/acidanthera/audk.git
ArmVirtPkg/PrePi: run all library constructors by hand
Instead of invoking the library constructors of some libraries by hand, invoke the generated function ProcessLibraryConstructorList in AutoGen.c so all constructors are executed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
14ca435fb6
commit
af47c61845
|
@ -29,15 +29,9 @@
|
|||
#include "PrePi.h"
|
||||
#include "LzmaDecompress.h"
|
||||
|
||||
EFI_STATUS
|
||||
VOID
|
||||
EFIAPI
|
||||
ExtractGuidedSectionLibConstructor (
|
||||
VOID
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
LzmaDecompressLibConstructor (
|
||||
ProcessLibraryConstructorList (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
@ -125,8 +119,7 @@ PrePiMain (
|
|||
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
|
||||
|
||||
// SEC phase needs to run library constructors by hand.
|
||||
ExtractGuidedSectionLibConstructor ();
|
||||
LzmaDecompressLibConstructor ();
|
||||
ProcessLibraryConstructorList ();
|
||||
|
||||
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
|
||||
BuildPeCoffLoaderHob ();
|
||||
|
|
Loading…
Reference in New Issue