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

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

[avr-gcc-list] eeprom section and ld scripts


From: Bill Somerville
Subject: [avr-gcc-list] eeprom section and ld scripts
Date: Mon, 13 Oct 2003 15:54:43 +0100

I am a little confused by the AVR linker scripts, perhaps someone can
clarify.

The eeprom section looks like:

  .eeprom  :
        AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))
  {
    *(.eeprom*)
     __eeprom_end = . ;
  }  > eeprom

This gives a load address which is incorrect and has to corrected before
tools such as simulavr, uisp, and avrdude can be used.

Simply using

  .eeprom  :
  {
    *(.eeprom*)
     __eeprom_end = . ;
  }  > eeprom

seems to give the correct load address 0x00810000 and virtual address
0x00810000 without any section overlap errors.

Does anyone know why the LMA adjustment in the script is there?

-- 
Bill Somerville


reply via email to

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