RTEMS Tools | rtems-syms: Warnings in generated output (#21)

Gedare Bloom (@gedare) gitlab at rtems.org
Sat Mar 22 22:13:20 UTC 2025




Gedare Bloom started a new discussion: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21#note_121630


On `uC5282` there is:
```
const rtems_rtl_tls_offset rtems_rtl_tls_offsets[] = {
};
```
So the array is defined as an empty / 0 element array, so indeed accessing element 0 is out of bounds.

Whereas on `sparc` it has elements:
```
const rtems_rtl_tls_offset rtems_rtl_tls_offsets[] = {
  { RTEMS_TLS_INDEX__tls_cleanup, rtems_rtl_tls__tls_cleanup },
  ...
};
```

So the right solution is probably to check that `sizeof(rtems_rtl_tls_offsets) > 0`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21#note_121630
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/20250322/472e091c/attachment.htm>


More information about the bugs mailing list