RTEMS | cpukit/libdl: The RAP loader reads a wrong relocation type (#5801)

Sebastian Huber (@sebhub) gitlab at rtems.org
Sat Oct 3 13:32:10 UTC 2026



Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5801



A relocation record of a RAP file holds the ELF relocation type in bits 7:0 of its info word.  The loader extracts it with `ELF_R_TYPE()`.  On a 64-bit target this macro returns the low 32 bits, which include the section index or the string offset in bits 30:8.  The RISC-V loader thus rejects `dl06` with "Unsupported relocation type 279".

The AArch64 relocation types start at 257 and do not fit into bits 7:0 at all.  The format needs a field of its own for the type, see also #4781.

Found while running the full test suite on eleven simulators.  This description was created with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5801
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-akty56lzjp9hm1rb8ymgsqpcf-1d/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/43fe0d54/attachment.htm>


More information about the bugs mailing list