On 08.01.21 21:50, [ext] Christian Storm wrote:
> Hi Jan,
> 
>>> While the InitializeLib() call in efi_main(), the global
>>>   ST (SystemTable),
>>>   BS (BootServices), and
>>>   RT (RuntimeServices)
>>> pointers as well as the global
>>>   EFI_HANDLE LibImageHandle
>>> are initialized.
>>> Hence, there's no need to pass along the this_image
>>> handle as GNU EFI's already initialized LibImageHandle
>>> can be used instead.
>>
>> Could you provide a pointer to something that states that LibImageHandle
>> is a public API? I'm specifically concerned because you have to declare
>> it explicitly.
> 
> Yes, I see. It's defined in GNU EFI's lib/lib.h:87 (EFI library header files)
> under the section 
>   //
>   // Globals
>   //
> as
>   extern EFI_HANDLE                   LibImageHandle;
> so I considered it a public API.
> See also lib/data.c:30 (EFI library global data).
> 
> I did not want to (explicitly) pull in the rest of lib/lib.h, that's why
> I declared it explicitly here...
> 

lib/lib.h is no public API. It's an internal header, and the above is
for gnuefi-internal global use. So this is a no-go.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/c5e14b90-a2bc-063f-4c47-3c26edba6388%40siemens.com.

Reply via email to