Commit 2fcc8cad6c1b9170df90e0e6463d9f77b263ecf5
authorMichel <michel@acer.vidiactive.com>
Wed, 10 Mar 2010 18:05:42 +0000 (18:05 +0000)
committerMichel <michel@acer.vidiactive.com>
Wed, 10 Mar 2010 18:05:42 +0000 (18:05 +0000)
Added some constants for the addresses used by gcc
to link the flash and eeprom data.

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/sim_elf.h

index 172b1c5ef4f23eb4404155fcfb976dbb20f247ba..085193a99c9ae53299d602be805f136c29cc1c42 100644 (file)
 #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 {