This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
using CYGBLD_ATTRIB_SECTION to place data in specific section
- From: Will Wagner <will_wagner at carallon dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 15 Aug 2005 17:24:28 +0100
- Subject: [ECOS] using CYGBLD_ATTRIB_SECTION to place data in specific section
Hi All,
I'm trying to get the compiler to place an unsigned int at a specific
location in my image.
To do this I have made an addition to the .ldi file that includes the
new section. I then was trying to use the CYGBLD_ATTRIB_SECTION macro to
specify the location I want the data to be placed in.
i.e.
unsigned int myData CYGBLD_ATTRIB_SECTION(.mySection) = 0;
If I try this I get a compile error.
How can I get the compiler to place the data in the specified section?
Many thanks,
Will
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss