gcc disobeys const qualifier
Aaron J. Grier
aaron@frye.com
Tue Dec 19 10:50:00 GMT 2000
look at your linker script and make sure that read-only data is being
written into (and referenced from ROM.) I use the following snippet in
my linker script:
.rodata : {
_rodata_start = . ;
*(.rodata)
*(.rodata.*)
*(.gnu.linkonce.r*)
*(.rodata1)
. = ALIGN (4);
_erodata = . ;
} > rom
this creates a new section called .rodata and puts all read-only data
segments into it.
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
"Calling anything from the x86 world a 'masterpiece' seems, to me,
like putting a gold star on the best-looking fingerpainting in the
special-needs Kindergarten class." -- Wakko Warner
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list