Open csdvrx opened 1 year ago
What is the compiler you are using?
Officially, UEFI spec frowns on using C lib, and some compilers (MSVC, I am looking at you) were still adding implicit memset calls by detecting memory copy patterns in the code, which is why I implemented own memset() in SaferAsm.nasm - and this is where linker probably links it from. PLMK what is the compiler so I can check and maybe change the name of the call so it does not introduce potential conflicts.
The normal build works fine with:
I then type:
make -c BaseTool; build -a X64 -t GCC5 -p MdeModulePkg/MdeModulePkg.dsc
However, if I uncomment ENABLE_MINILOG_TRACING in ./MdeModulePkg/Application/PowerMonkeyApp/CONFIGURATION.h
The solution is to remove nprinted declaration and variable, and to add string.h