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>
#include "PrePi.h"\r
#include "LzmaDecompress.h"\r
\r
-EFI_STATUS\r
-EFIAPI\r
-ExtractGuidedSectionLibConstructor (\r
- VOID\r
- );\r
-\r
-EFI_STATUS\r
+VOID\r
EFIAPI\r
-LzmaDecompressLibConstructor (\r
+ProcessLibraryConstructorList (\r
VOID\r
);\r
\r
PERF_START (NULL, "PEI", NULL, StartTimeStamp);\r
\r
// SEC phase needs to run library constructors by hand.\r
- ExtractGuidedSectionLibConstructor ();\r
- LzmaDecompressLibConstructor ();\r
+ ProcessLibraryConstructorList ();\r
\r
// Build HOBs to pass up our version of stuff the DXE Core needs to save space\r
BuildPeCoffLoaderHob ();\r