This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: where to put code and data in ROM




unsigned char globalArchive[] __attribute__ ((section ("bar"))) = 
	{0x04, 0x18, 0x00, 0x00, 0x81};

--Victor

-----Original Message-----
From: Simpkins, Andy [mailto:Andy.Simpkins@Transcomm.uk.com]
Sent: Thursday, August 23, 2001 5:25 PM
To: Crossgcc (E-mail)
Subject: where to put code and data in ROM


Hi there,

The GCC manual tells us :

	extern void foobar (void) __attribute__ ((section ("bar")));

puts the function foobar in the bar section. 


How do I define 

	unsigned char globalArchive[] = {0x04, 0x18, 0x00, 0x00, 0x81};

such that this is stored in the bar section as well?


Andy


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sourceware.cygnus.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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