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

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jan 4 18:58:17 UTC 2016

----- 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.

More information about the devel mailing list