public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Does edk2 also link to crt0-efi like GNU-EFI
@ 2022-06-16 14:20 Ayush Singh
  2022-06-16 18:36 ` [edk2-devel] " Andrew Fish
  0 siblings, 1 reply; 5+ messages in thread
From: Ayush Singh @ 2022-06-16 14:20 UTC (permalink / raw)
  To: edk2-devel-groups-io
  Cc: Michael Kubacki, michael.d.kinney, Jiewen Yao, jabeena.b.gaibusab

Hello everyone, I wanted to ask if the edk2 build system also links to
crt0-efi, like GNU-EFI?

If yes, I would also like to see how that is actually implemented. If
not, how does edk2 support custom entry functions? It is possible with
llvm backend but I am not sure how it is done in GCC and am curious,

Currently, rust does not support the custom implementation of
`lang_start` (which is started by crt0 in most platforms), so I was
trying to find ways to be able to use custom crt0 which sets up
`SystemTable` and `SystemHandler` and start the `lang_start` from it.
This way, the user will be able to call the normal `main` function
rather than using the `no_main` feature.

My blog post [1] shows how we currently use the `efi_main` function.

Yours sincerely,
Ayush Singh

[1]: (https://www.programmershideaway.xyz/post5/)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-17  5:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16 14:20 Does edk2 also link to crt0-efi like GNU-EFI Ayush Singh
2022-06-16 18:36 ` [edk2-devel] " Andrew Fish
2022-06-16 20:17   ` Ayush Singh
2022-06-16 23:12     ` [edk2-devel] Does edk2 also link to crt0-efi like GNU-EFI * Andrew Fish
2022-06-17  5:42       ` Ayush Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox