[libc-commits] [libc] [libc] Provide __libc_{init, fini}_array for baremetal (PR #90828)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu May 2 08:26:15 PDT 2024
jhuber6 wrote:
> LGTM.
>
> OTOH, I see these functionalities also presented `startup/amdgpu/start.cpp`, `startup/gpu/nvptx/start.cpp`, and `startup/linux/do_start.cpp`. @jhuber6 is this something that we can refactor to a common target?
There's some common stuff. The `nvptx` implementation is different however because I need to hack in my own array that the loader creates. It also doesn't use the preinit array.
https://github.com/llvm/llvm-project/pull/90828
More information about the libc-commits
mailing list