RTEMS Tools | rap: The format cannot hold AArch64 relocation types (#45)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Sat Oct 3 13:33:16 UTC 2026
Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/work_items/45
A relocation record of a RAP file holds the ELF relocation type in bits 7:0 of its info word. The AArch64 relocation types start at 257, for example `R_AARCH64_CALL26` is 283. The upper bits of the type overlap the section index or the string offset in bits 30:8. An AArch64 RAP file thus carries wrong types and wrong symbol names, and the load of `dl06` of RTEMS fails with "global symbol not found: l_o2_func2".
The format needs a field of its own for the type. This requires a new format version which rtems-ld, rtems-rap and the libdl loader of RTEMS agree on.
Found while running the RTEMS test suite on eleven simulators. This description was created with Claude Code assistance.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/work_items/45
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/13/sent_notifications/5-46awxxv3k2oc1y15fbs9g6zjl-d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261003/cff1338a/attachment.htm>
More information about the bugs
mailing list