RTEMS | RUntime symbols loading is broken (#5234)
Chris Johns (@chris)
gitlab at rtems.org
Mon Mar 31 05:29:36 UTC 2025
Chris Johns commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5234#note_121953
The next issue is the `init` call in the constructor table relocation is not working. There is no name in the symbol:
```
rtl: unresolv: add: spu-sym.o(s:5) -> '' (len: 0)
```
The object files relocation records are:
```
Relocation section '.rel.text.startup' at offset 0x82590 contains 4 entries:
Offset Info Type Sym.Value Sym. Name
00000018 0000111c R_ARM_CALL 00000000 rtems_rtl_base_sy[...]
00000020 00000028 R_ARM_V4BX
00000024 00000502 R_ARM_ABS32 00000000 .rodata
00000028 00000502 R_ARM_ABS32 00000000 .rodata
Relocation section '.rel.init_array' at offset 0x825b0 contains 1 entry:
Offset Info Type Sym.Value Sym. Name
00000000 00000b26 R_ARM_TARGET1 00000000 init
```
The `readelf` tool have the symbol and it is local:
```
rtl: sym:add:11 name:71 : init : bind:0 type:2 val:0x0 sect:5 size:44
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5234#note_121953
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250331/78456fd9/attachment-0001.htm>
More information about the bugs
mailing list