mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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 "PrePi.h"
|
||||||
#include "LzmaDecompress.h"
|
#include "LzmaDecompress.h"
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
ExtractGuidedSectionLibConstructor (
|
|
||||||
VOID
|
VOID
|
||||||
);
|
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
EFIAPI
|
||||||
LzmaDecompressLibConstructor (
|
ProcessLibraryConstructorList (
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -125,8 +119,7 @@ PrePiMain (
|
|||||||
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
|
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
|
||||||
|
|
||||||
// SEC phase needs to run library constructors by hand.
|
// SEC phase needs to run library constructors by hand.
|
||||||
ExtractGuidedSectionLibConstructor ();
|
ProcessLibraryConstructorList ();
|
||||||
LzmaDecompressLibConstructor ();
|
|
||||||
|
|
||||||
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
|
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
|
||||||
BuildPeCoffLoaderHob ();
|
BuildPeCoffLoaderHob ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user