From: Michel Date: Wed, 10 Mar 2010 18:05:42 +0000 (+0000) Subject: elf: Added constants for flash & eeprom start X-Git-Tag: v1.0a1~3 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=2fcc8cad6c1b9170df90e0e6463d9f77b263ecf5;p=sx%2Fsimavr.git elf: Added constants for flash & eeprom start Added some constants for the addresses used by gcc to link the flash and eeprom data. Signed-off-by: Michel Pollet --- diff --git a/simavr/sim/sim_elf.h b/simavr/sim/sim_elf.h index 172b1c5..085193a 100644 --- a/simavr/sim/sim_elf.h +++ b/simavr/sim/sim_elf.h @@ -28,6 +28,12 @@ #define ELF_SYMBOLS 1 #endif +/* these are the addresses the gnu linker uses to + * "fake" a non-harward addressign space for the AVR + */ +#define AVR_SEGMENT_OFFSET_FLASH 0 +#define AVR_SEGMENT_OFFSET_EEPROM 0x00810000 + #include "sim_avr.h" typedef struct elf_firmware_t {