[RTEMS Project] #4673: Runtime loader exported symbols address size not consistent

RTEMS trac trac at rtems.org
Fri Jul 29 13:25:02 UTC 2022


#4673: Runtime loader exported symbols address size not consistent
-----------------------+--------------------------------------
 Reporter:  Ryan Long  |       Owner:  Ryan Long <ryan.long@…>
     Type:  defect     |      Status:  closed
 Priority:  normal     |   Milestone:  6.1
Component:  lib/dl     |     Version:  6
 Severity:  normal     |  Resolution:  fixed
 Keywords:             |  Blocked By:
 Blocking:             |
-----------------------+--------------------------------------

Comment (by Ryan Long <ryan.long@…>):

 In [changeset:"1c6ac88f938f4b135f3bbffc4b19bbc540508c80/rtems"
 1c6ac88/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="1c6ac88f938f4b135f3bbffc4b19bbc540508c80"
 cpukit/libdl/rtl-sym.c: Fix increment of variable

 In rtems_rtl_symbol_global_add() the loop that gets to the end of the
 symbol
 table used "unsigned long" to increment the index for the table. For most
 architectures this resulted in 4, but with AArch64, it results in 8. This
 resulted in the symbols being read in wrong. Changing this to void* along
 with
 changing the RISC-V specific code for 8 byte pointers in rtems-tools to
 work
 independent of the architecture.

 Updates #4673
 Closes #4682
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4673#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list