[libc-commits] [libc] [libc][uefi] add crt1 (PR #132150)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Wed Apr 2 00:43:07 PDT 2025
================
@@ -10,7 +10,7 @@ types:
enums: []
functions: []
objects:
- - object_name: efi_system_table
+ - object_name: __llvm_libc_efi_system_table
object_type: EFI_SYSTEM_TABLE *
- - object_name: efi_image_handle
+ - object_name: __llvm_libc_efi_image_handle
object_type: EFI_HANDLE
----------------
petrhosek wrote:
The UEFI spec doesn't specify how to retrieve `EFI_SYSTEM_TABLE` and `EFI_HANDLE` (other than the handoff protocol), all UEFI entry points take it as an explicit argument. These symbols are a non-standard extension to spec and as such we need to be extra careful. For example, I don't think we should place these symbols in `Uefi.h` since that's less portable than having a custom header (which also let's you use `__has_include`). There are other questions, like for example whether these should be symbols or functions (the latter having an advantage of being interposable). All of these aspects should ideally be covered in the RFC.
https://github.com/llvm/llvm-project/pull/132150
More information about the libc-commits
mailing list