• Gary Ching-Pang Lin's avatar
    Cryptlib: Define the va functions for EFIAPI · 775fdb9f
    Gary Ching-Pang Lin authored
    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.
    
    (*) a7f4b26cSigned-off-by: default avatarGary Ching-Pang Lin <glin@suse.com>
    775fdb9f
Makefile 6.44 KB