This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]