CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
endif
+ifneq ($(RESET_VECTOR_ADDRESS),)
+CPPFLAGS += -DRESET_VECTOR_ADDRESS=$(RESET_VECTOR_ADDRESS)
+endif
+
ifneq ($(OBJTREE),$(SRCTREE))
CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
endif
* MA 02111-1307 USA
*/
+#ifndef RESET_VECTOR_ADDRESS
+#define RESET_VECTOR_ADDRESS 0xfffffffc
+#endif
+
OUTPUT_ARCH(powerpc)
/* Do we need any of these for elf?
__DYNAMIC = 0; */
. = ALIGN(256);
__init_end = .;
- .bootpg ADDR(.text) + 0x7f000 :
+ .bootpg RESET_VECTOR_ADDRESS - 0xffc :
{
cpu/mpc85xx/start.o (.bootpg)
} :text = 0xffff
- .resetvec ADDR(.text) + 0x7fffc :
+ .resetvec RESET_VECTOR_ADDRESS :
{
*(.resetvec)
} :text = 0xffff
- . = ADDR(.text) + 0x80000;
+ . = RESET_VECTOR_ADDRESS + 0x4;
__bss_start = .;
.bss (NOLOAD) :