Hi Gregory, Thanks alot for pointing me to the correct documentation, just what I needed!.
Warm Regards, Ritvik Tanksalkar On Thu, Sep 5, 2024 at 6:35 PM Gregory Nutt <spudan...@gmail.com> wrote: > See https://cwiki.apache.org/confluence/display/NUTTX/NuttX+Simulation > > On 9/5/2024 1:47 PM, Ritvik Tanksalkar wrote: > > Hi, > > > > I'm trying to understand the build process of the nuttx kernel using the > > configuration for *sim:posix_spawn*. I see that the *sim* architecture > has > > a *nuttx-names.in <http://nuttx-names.in>* which the linker uses and > likely > > creates the *nuttx-names.dat* during the build process. > > > > The symbols I see in this file make it seem like the linker is > redirecting > > some of them to host stdlib whenever available (ex - *pthread_sigmask* > has > > a custom stdlib implementation at *sched/pthread_sigmask.c*) but the > > simulator uses host stdlib's pthread_sigmask (*pthread_sigmask@GLIBC_2.32 > * > > ). > > > > There are some functions which get redirected to their custom > > implementations and some that get redirected towards host stdlib. My > > question is, when and how is this symbol redirection decided, > specifically, > > how does the linker understand which symbols to redirect to custom stdlib > > and which ones to redirect towards host stdlib? > > > > Regards, > > Ritvik > > >