[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Choose where the code is placed in flash memory.
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] Choose where the code is placed in flash memory. |
Date: |
Tue, 03 Dec 2002 14:28:42 -0700 |
On 3 Dec 2002 at 21:13, Klaus Rudolph wrote:
<snip>
> Now you compile it as you normal compile your code
> avr-gcc -O2 -g main.c -o
> you got main.o
> now you tell the linker that the section "test99" will start at 0x5432
> So you tell the linker your wishes: avr-ld --section-start
> test99=0x5432 main.o -o mainprog
>
> or you place the linker parameters in avr-gcc line... sorry I donĀ“t
> know the syntax in that moment (to much C2H5OH here :-)
For gcc, add to the -Wl parameter:
-Wl,--section-start=test99=0x5432,...
Eric
avr-gcc-list at http://avr1.org