2022-08-30 16:21:52 -05:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
|
|
|
2008-04-24 06:09:28 -05:00
|
|
|
/****************************************************************************
|
|
|
|
* Copyright (c) 2006 by Michael Fischer. All rights reserved.
|
|
|
|
****************************************************************************
|
|
|
|
*
|
|
|
|
* History:
|
|
|
|
*
|
|
|
|
* 30.03.06 mifi First Version
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
ENTRY(ResetHandler)
|
|
|
|
SEARCH_DIR(.)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Define stack size here
|
|
|
|
*/
|
|
|
|
FIQ_STACK_SIZE = 0x0100;
|
|
|
|
IRQ_STACK_SIZE = 0x0100;
|
|
|
|
ABT_STACK_SIZE = 0x0100;
|
|
|
|
UND_STACK_SIZE = 0x0100;
|
|
|
|
SVC_STACK_SIZE = 0x0100;
|
|
|
|
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
ram : org = 0x00200000, len = 64k
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Do not change the next code
|
|
|
|
*/
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.vectors);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.init);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.text);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.rodata);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.rodata*);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.glue_7t);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.glue_7);
|
|
|
|
. = ALIGN(4);
|
|
|
|
etext = .;
|
|
|
|
} > ram
|
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
PROVIDE (__data_start = .);
|
|
|
|
*(.data)
|
|
|
|
. = ALIGN(4);
|
|
|
|
edata = .;
|
|
|
|
_edata = .;
|
|
|
|
PROVIDE (__data_end = .);
|
|
|
|
} > ram
|
|
|
|
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
PROVIDE (__bss_start = .);
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__bss_end = .);
|
2009-09-21 13:40:55 -05:00
|
|
|
|
2008-04-24 06:09:28 -05:00
|
|
|
. = ALIGN(256);
|
2009-09-21 13:40:55 -05:00
|
|
|
|
2008-04-24 06:09:28 -05:00
|
|
|
PROVIDE (__stack_start = .);
|
2009-09-21 13:40:55 -05:00
|
|
|
|
2008-04-24 06:09:28 -05:00
|
|
|
PROVIDE (__stack_fiq_start = .);
|
|
|
|
. += FIQ_STACK_SIZE;
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__stack_fiq_end = .);
|
|
|
|
|
|
|
|
PROVIDE (__stack_irq_start = .);
|
|
|
|
. += IRQ_STACK_SIZE;
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__stack_irq_end = .);
|
|
|
|
|
|
|
|
PROVIDE (__stack_abt_start = .);
|
|
|
|
. += ABT_STACK_SIZE;
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__stack_abt_end = .);
|
|
|
|
|
|
|
|
PROVIDE (__stack_und_start = .);
|
|
|
|
. += UND_STACK_SIZE;
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__stack_und_end = .);
|
|
|
|
|
|
|
|
PROVIDE (__stack_svc_start = .);
|
|
|
|
. += SVC_STACK_SIZE;
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE (__stack_svc_end = .);
|
|
|
|
PROVIDE (__stack_end = .);
|
2009-09-21 13:40:55 -05:00
|
|
|
PROVIDE (__heap_start = .);
|
2008-04-24 06:09:28 -05:00
|
|
|
} > ram
|
2009-09-21 13:40:55 -05:00
|
|
|
|
2008-04-24 06:09:28 -05:00
|
|
|
}
|
|
|
|
/*** EOF ***/
|