Zepp-Hanzj opened a new pull request, #18924: URL: https://github.com/apache/nuttx/pull/18924
## Summary Resolve PLT entries at load time on Linux hosts so early host calls do not enter the lazy binder with simulated interrupts masked. ## Problem On Ubuntu 20 with GCC 9, the `sim:nsh` binary linked successfully after the `-no-pie` fix but crashed very early at runtime inside `_dl_fixup` / `_dl_runtime_resolve_xsavec` when `up_irq_save()` triggered a first-time PLT resolution. Setting `LD_BIND_NOW=1` avoided the crash and allowed NSH to start, which showed lazy binding was the trigger. ## Validation ```bash ./tools/configure.sh sim:nsh make -j1 nuttx timeout 5 ./nuttx ``` `./nuttx` reached `NuttShell (NSH) NuttX-12.13.0` without needing `LD_BIND_NOW=1`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
