mirror of https://github.com/wolfSSL/wolfBoot.git
59 lines
1.0 KiB
Plaintext
59 lines
1.0 KiB
Plaintext
OUTPUT_FORMAT("elf32-littlearm")
|
|
OUTPUT_ARCH(arm)
|
|
|
|
MEMORY
|
|
{
|
|
DDR_MEM(rwx): ORIGIN = 0x00000000, LENGTH = 0x000100000
|
|
}
|
|
|
|
ENTRY(reset_vector_entry)
|
|
SECTIONS
|
|
{
|
|
.text : {
|
|
_start_text = .;
|
|
*(.text)
|
|
*(.rodata)
|
|
*(.rodata*)
|
|
. = ALIGN(4);
|
|
*(.glue_7)
|
|
. = ALIGN(4);
|
|
*(.eh_frame)
|
|
. = ALIGN(4);
|
|
_end_text = . ;
|
|
}
|
|
|
|
/* collect all initialized .data sections */
|
|
/* .data : AT ( ADDR (.text) + SIZEOF (.text) SIZEOF (.ARM.*) { */
|
|
|
|
. = ALIGN(4);
|
|
.dummy : {
|
|
_edummy = .;
|
|
}
|
|
|
|
.data : AT (LOADADDR(.dummy)) {
|
|
_start_data = .;
|
|
*(.vectors)
|
|
*(.data)
|
|
_end_data = .;
|
|
}
|
|
|
|
/* collect all uninitialized .bss sections */
|
|
.bss (NOLOAD) : {
|
|
. = ALIGN(4);
|
|
_start_bss = .;
|
|
*(.bss)
|
|
_end_bss = .;
|
|
}
|
|
}
|
|
|
|
kernel_addr = 0x0400000;
|
|
update_addr = 0x0800000;
|
|
|
|
_romsize = _end_data - _start_text;
|
|
_sramsize = _end_bss - _start_text;
|
|
END_STACK = _start_text;
|
|
_stack_top = ORIGIN(DDR_MEM) + LENGTH(DDR_MEM);
|
|
end = .; /* define a global symbol marking the end of application */
|
|
|
|
|