Changeset f027f37 in rtems-tools for linkers/rtems-syms.cpp

Timestamp:
01/04/16 10:15:37 (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10, 5, master
Children:
606c08c
Parents:
a7951f2
git-author:
Sebastian Huber <sebastian.huber@…> (01/04/16 10:15:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/05/16 06:05:52)
Message:

linkers: Fix for targets with a small-data area

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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.