RTEMS Tools | rtems-syms: Warnings in generated output (#21)
Chris Johns (@chris)
gitlab at rtems.org
Thu Jul 10 22:45:22 UTC 2025
Chris Johns commented: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21#note_126315
Reviewing possible options it seems we should not generate a TLS offset table if there are no TSL symbols present. The symbols generator should be updated to not create a table when there are no symbols and `NULL` passed to the `rtems_rtl_base_sym_global_add()` argument `tls_offsets` if `tls_size` is `0`. This requires scanning the symbols to see how many TLS symbols there are before adding the table header and generating the table only if there are symbols and if there are none making the `rtems_rtl_symbol_global_add` adding and using:
```c
static const char* const c_rtl_no_tls_call_body_embeded[] =
{
"{",
" rtems_rtl_base_sym_global_add (&rtems__rtl_base_globals[0],",
" rtems__rtl_base_globals_size[0],",
" NULL,",
" 0);",
"}",
0
};
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21#note_126315
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/20250710/ca3c79b6/attachment-0001.htm>
More information about the bugs
mailing list