mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 12:48:09 +00:00
CONFIG_UNWINDER_ARM compiles everything with -funwind-tables, modules included, so each module carries .ARM.exidx and .ARM.extab. The NXFLAT link scripts do not name them, and ldnxflat placed them in D-Space, where the first R_ARM_PREL31 entry stopped the conversion: ldnxflat: arm relocation 42 at D-Space 00000018 is not handled That relocation cannot be handled: an exidx entry is an offset from itself to a function in I-Space, and the distance between the two segments is only known when the loader places them. Nothing unwinds through a module either, since the unwinder only reads the firmware's own table. So ldnxflat leaves both sections out of the images, and with them the relocations against them, as it already does for sections it does not place. A module without unwind tables converts exactly as before. On mps3-an547:nsh under QEMU with CONFIG_UNWINDER_ARM and examples/nxflat, the modules failed to convert; now they convert and errno, hello, mutex, pthread and struct run. The eleven modules of tools/nxflat/testsuite.sh convert to the same bytes as before. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| dyncall_skeleton_arm.def | ||
| dyncall_skeleton_thumb2.def | ||
| ldnxflat.c | ||
| mknxflat.c | ||
| nxflat_elf.c | ||
| nxflat_elf.h | ||
| nxflat_thunk.h | ||
| testsuite.sh | ||
| thunk_arm.c | ||
| thunk_thumb2.c | ||