C Startup Code
John Clarke
johnc@vastsystems.com.au
Wed Apr 18 17:06:00 GMT 2001
On Tue, Apr 17, 2001 at 11:19:41PM -0500, Andrew Pines wrote:
> SECTIONS
> {
> .text :
> {
> _text = .; /* start of text */
> *(.rodata) /* read only data (in ROM) */
> *(.text) /* code */
> _etext = .; /* end of text */
> } >ROM
>
> .data : AT (ADDR(.text) + SIZEOF(.text)) /* place initialized
> data after read only data in ROM, but reference to it in RAM */
> {
> _data = .; /* RAM location of initialized data */
> *(.data)
> _edata = .; /* end of data, used to copy initialized
> data at start up */
> } >RAM
What happens if SIZEOF(.text) + SIZEOF(.data) is greater than the size
of the ROM area? Is there any way to have the linker produce a warning
or an error?
Cheers,
John
--
whois !JC774-AU@whois.aunic.net
------
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