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.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to