RTEMS | Draft: Support for building RTEMS with LLVM toolchains (!1539)

Chris Johns (@chris) gitlab at rtems.org
Wed Oct 14 00:03:01 UTC 2026




Chris Johns started a new discussion on cpukit/libdl/rtl-elf.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1539#note_161027

 >                                        Elf_Word* value) {
 >    rtems_rtl_obj_sect* sect;
 >  
 > +#if defined(__sparc__)
 > +  /*
 > +   * SPARC TLS Initial-Exec sequences contain a synthetic GOT reference.
 > +   * The architecture relocator relaxes these sequences to Local-Exec, so no
 > +   * run-time GOT is needed.

I have avoided any arch conditionals in this file so far and it would be nice to keep it that way by exploring how to handle this case in a generic way.

We do not use GOT and link-edit so would this test be the same on all architectures that reference it?

Note, this code is in a slight changed LLVM format.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1539#note_161027
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/6-axrxuuzfelzdjfshwjltp3210-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/20261014/97065815/attachment.htm>


More information about the bugs mailing list