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.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs