RTEMS | Draft: Feature/rtl libdl enhancements (!846)
Chris Johns (@chris)
gitlab at rtems.org
Mon Nov 24 22:11:33 UTC 2025
Chris Johns started a new discussion on cpukit/libdl/rtl-elf.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/846#note_136272
> - *symbol = NULL;
> + else
> + *symbol = NULL;
>
> sect = rtems_rtl_obj_find_section_by_index (obj, sym->st_shndx);
> if (!sect)
> - return false;
> -
> - *value = sym->st_value + (Elf_Addr)(uintptr_t) sect->base;
> + {
> + if (!*symbol)
> + return false;
> + else
> + *value = (Elf_Addr)(uintptr_t) (*symbol)->value;
> + }
> + else
Please add `{}` for the `else` block.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/846#note_136272
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/20251124/98b01344/attachment-0001.htm>
More information about the bugs
mailing list