[libc] Adjust NVPTX startup code
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 23 Mar 2023 00:58:08 +0000 (19:58 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 23 Mar 2023 01:08:08 +0000 (20:08 -0500)
commitae63b1a5767b89fe5af140365f9e3ccf74feb1f0
treecce41857a8152796b6a08f06c16c44dc4c777d8b
parent9855fe4568770947abf6c465c513dfd4a6c6dca6
[libc] Adjust NVPTX startup code

Summary:
The startup code needs to include the environment pointer so we add this
to the arguments. Also we need to ensure that the `crt1.o` file is made
with `-fgpu-rdc` set so we can actually use it without undefined
reference errors.
libc/startup/gpu/nvptx/CMakeLists.txt
libc/startup/gpu/nvptx/start.cpp