Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Understanding Simulator Build Process #13304

Closed
1 task done
PwnVerse opened this issue Sep 5, 2024 · 1 comment
Closed
1 task done

Help with Understanding Simulator Build Process #13304

PwnVerse opened this issue Sep 5, 2024 · 1 comment
Labels
Community: Question Further information is requested

Comments

@PwnVerse
Copy link
Contributor

PwnVerse commented Sep 5, 2024

Description

Hi, I'm trying to understand the build process of nuttx kernel using the configuration for sim:posix_spawn. I see that the sim architecture has a nuttx-names.in which the linker uses and likely creates the nuttx-names.dat during build process. The symbols I see in this file seem like the linker is trying to redirect 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 know which symbols to redirect to custom stdlib and which ones to redirect towards host stdlib?

Verification

  • I have verified before submitting the report.
@PwnVerse PwnVerse added the Community: Question Further information is requested label Sep 5, 2024
@acassis
Copy link
Contributor

acassis commented Sep 6, 2024

@PwnVerse as Greg pointed to Documentation at https://cwiki.apache.org/confluence/display/NUTTX/NuttX+Simulation
Could you please close this Issue?

@PwnVerse PwnVerse closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants