mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
Under FDPIC an .init_array or .fini_array entry is a code address, but a C function pointer is a function descriptor. crt0 called each entry through a function pointer, so it read the constructor's first instructions as a descriptor and jumped to garbage. Call each entry with fdpic_call() and the data base from fdpic_base(), which is the module's own. Without CONFIG_FDPIC both are a direct call, as before. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||