RTEMS | Draft: Support for building RTEMS with LLVM toolchains (!1539)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Fri Oct 16 05:34:57 UTC 2026
Sebastian Huber started a new discussion on cpukit/libdl/rtl-unwind-dw2.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1539#note_161205
> void __register_frame(void* begin);
> void __deregister_frame(void* begin);
>
> -bool rtems_rtl_elf_unwind_dw2_parse(const rtems_rtl_obj* obj, const char* name,
> - uint32_t flags) {
> - (void)obj;
> +#if defined(__clang__)
The frame registration depends on the unwinder, not on the compiler. `__register_frame()` of libgcc takes the whole section. `__register_frame()` of the LLVM libunwind takes one FDE. A clang build which links libgcc then registers each FDE separately with libgcc. Please select the code by the unwinder.
Line 46 includes `<string.h>` a second time.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1539#note_161205
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-ca0zjll3xaloxqts9v6qky01u-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/20261016/8bceef72/attachment-0001.htm>
More information about the bugs
mailing list