|
From: | Per Arnold Blåsmo |
Subject: | Re: [avr-gcc-list] Moving start of progmem |
Date: | Sun, 13 Feb 2005 08:20:29 +0100 |
User-agent: | Mozilla Thunderbird 1.0 (X11/20041206) |
E. Weddington wrote:
Per Arnold Blåsmo wrote:Start of the text section is normally at 0x00 and the first part of text is .vectors and then .progmem with .init0...9..text 0x00000000 *(.vectors) .vectors 0x00000000 0x30 0x00000000 __vectors 0x00000030 __ctors_start = . *(.ctors) 0x00000030 __ctors_end = . 0x00000030 __dtors_start = . *(.dtors) 0x00000030 __dtors_end = . *(.progmem.gcc*) *(.progmem*) 0x00000030 . = ALIGN (0x2) *(.init0) .....I need to make some space between .dtors end and .progmem so that progmem starts at the second page of the flash.How can I do that? Is there some option to the compiler? I have tried different --section-start=.init0=0x80 etc. but it does not work as expected.How is it? Do you have overlapped sections?
Yes, in a way. Certain instructions need to be in the region between the end of the vectors and the rest of the first page.
Umm. I'm no expert in the linker area, but you might have to make you're own linker script. I suggest that you take a look at the "ld" user manual. You can find it online:Do I have to make a linker script?<http://sources.redhat.com/binutils/docs-2.15/ld/index.html> Eric
Yes, I though so :-) Thanks for the link. Per A. -- Per Arnold Blåsmo e-mail: address@hidden Get Thunderbird <http://www.mozilla.org/products/thunderbird/>
[Prev in Thread] | Current Thread | [Next in Thread] |