nuttx/arch/arm
Marco Casaroli e7c6367533 arch/arm: Call FDPIC constructors with the module's own data base.
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>
2026-09-30 13:40:02 -03:00
..
include arch/arm/ra8m1: Add Renesas RA8M1 chip support 2026-09-29 06:46:52 -03:00
src arch/arm: Call FDPIC constructors with the module's own data base. 2026-09-30 13:40:02 -03:00
CMakeLists.txt
Kconfig arch/arm/ra8m1: Add Renesas RA8M1 chip support 2026-09-29 06:46:52 -03:00