avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Moving start of progmem


From: E. Weddington
Subject: Re: [avr-gcc-list] Moving start of progmem
Date: Sat, 12 Feb 2005 07:37:14 -0700
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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?

Do I have to make a linker script?

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:
<http://sources.redhat.com/binutils/docs-2.15/ld/index.html>

Eric

reply via email to

[Prev in Thread] Current Thread [Next in Thread]