mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-03 07:07:30 +00:00
![]() It turned out that my previous crash fix(*) was wrong.
We actually always used the gcc built-in va functions instead of
the "real" va functions for EFIAPI, and we are just lucky that
ERR_add_error_data didn't crash before.
This commit copies the va functions from MdePkg/Include/Base.h
in edk2 and introdues NO_BUILTIN_VA_FUNCS for x86_64, so that all
the x86_64 build will adopt the new va functions. For safety,
I also added EFIAPI to all the functions which use va_* to avoid
the potential trouble.
(*)
|
||
---|---|---|
.. | ||
err_all.c | ||
err_prn.c | ||
err.c |