On 01/05/16 05:58, Sebastian Huber wrote:


----- Am 4. Jan 2016 um 18:01 schrieb Joel Sherrill j...@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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to