From 2fcc8cad6c1b9170df90e0e6463d9f77b263ecf5 Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 10 Mar 2010 18:05:42 +0000 Subject: [PATCH] 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 --- simavr/sim/sim_elf.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.39.5