mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
DT_REL and DT_JMPREL hold the link-time address of their table, and the loader read the table at that value as a file offset. The two are equal only when the segment that holds it starts at file offset 0. An object linked with its text at file offset 0x1000, as the tree's gnu-elf.ld does, had its relocations read from padding, so none were applied and the module called through unrelocated pointers. Translate the address through the PT_LOAD headers first. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| libbuiltin | ||
| libc | ||
| libdsp | ||
| libm | ||
| libnx | ||
| libxx | ||
| CMakeLists.txt | ||