[RTEMS Project] #3865: Fix linker set item declarations for small data area targets

RTEMS trac trac at rtems.org
Wed Feb 5 07:39:33 UTC 2020


#3865: Fix linker set item declarations for small data area targets
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  defect           |     Status:  assigned
  Priority:  normal           |  Milestone:  5.1
 Component:  score            |    Version:  5
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 Some targets (e.g. 32-bit PowerPC) have a small-data area. Linker set
 items are not in the small data area. We have to tell this the compiler,
 otherwise linker error may occur due to a mismatch of relocations. There
 are two options to do this.

 1. We can declare items as an array of unspecified size and define items
 as an array with one element. The problem with this is that it breaks
 existing code, e.g. an item initializer would have to change.

 2. We add the section to the declaration. The problem is that in this case
 we need a dedicated declaration macro for the ordered items.

 Since item declarations are rarely used, we select option 2.

--
Ticket URL: <http://devel.rtems.org/ticket/3865>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list