[PATCH 2/2] linkers: Fix for targets with a small-data area

Chris Johns chrisj at rtems.org
Mon Jan 4 21:41:11 UTC 2016


On 01/05/16 05:58, Sebastian Huber wrote:
>
>
> ----- Am 4. Jan 2016 um 18:01 schrieb Joel Sherrill joel at rtems.org:
>
>> What exactly does this fix and how does it fix it?
>
> I will add this to the commit message:
>
> On certain targets (e.g. PowerPC) global data below a certain threshold (e.g. 8 bytes) may resided in a special memory area, the small-data area.  This allows more efficient load/store operations.  Placing such data into the wrong section (e.g. .rodata) leads to relocation errors during link-time.  See test program libtests/dl02 in the RTEMS testsuite.  Using an array of unspecified size prevents that the compiler assumes that a certain variable is in the small-data area.

Looks good with the updated commit message. Thanks.

Chris



More information about the devel mailing list