Line 11... |
Line 11... |
* Creator: Dan Gisselquist, Ph.D.
|
* Creator: Dan Gisselquist, Ph.D.
|
* Gisselquist Technology, LLC
|
* Gisselquist Technology, LLC
|
*
|
*
|
********************************************************************************
|
********************************************************************************
|
*
|
*
|
* Copyright (C) 2016, Gisselquist Technology, LLC
|
* Copyright (C) 2016-2017, Gisselquist Technology, LLC
|
*
|
*
|
* This program is free software (firmware): you can redistribute it and/or
|
* This program is free software (firmware): you can redistribute it and/or
|
* modify it under the terms of the GNU General Public License as published
|
* modify it under the terms of the GNU General Public License as published
|
* by the Free Software Foundation, either version 3 of the License, or (at
|
* by the Free Software Foundation, either version 3 of the License, or (at
|
* your option) any later version.
|
* your option) any later version.
|
Line 33... |
Line 33... |
|
|
ENTRY(_start)
|
ENTRY(_start)
|
|
|
MEMORY
|
MEMORY
|
{
|
{
|
blkram (wx) : ORIGIN = 0x0008000, LENGTH = 0x0008000
|
blkram (wx) : ORIGIN = 0x00020000, LENGTH = 0x00020000
|
flash (rx) : ORIGIN = 0x0400000, LENGTH = 0x0400000
|
flash (rx) : ORIGIN = 0x01000000, LENGTH = 0x01000000
|
sdram (wx) : ORIGIN = 0x4000000, LENGTH = 0x4000000
|
sdram (wx) : ORIGIN = 0x10000000, LENGTH = 0x10000000
|
}
|
}
|
|
|
_flash = ORIGIN(flash);
|
_flash = ORIGIN(flash);
|
_blkram = ORIGIN(blkram);
|
_blkram = ORIGIN(blkram);
|
_sdram = ORIGIN(sdram);
|
_sdram = ORIGIN(sdram);
|
_top_of_stack = ORIGIN(blkram) + LENGTH(blkram) - 1;
|
_top_of_stack = ORIGIN(blkram) + LENGTH(blkram) - 4;
|
|
|
SECTIONS
|
SECTIONS
|
{
|
{
|
.rocode ORIGIN(blkram) : {
|
.rocode ORIGIN(blkram) : {
|
_boot_address = .;
|
_boot_address = .;
|
*(.start) *(.boot)
|
*(.start) *(.boot)
|
_kernel_image_start = . ;
|
_kernel_image_start = . ;
|
*(.kernel)
|
*(.kernel)
|
*(.text.startup)
|
*(.text.startup)
|
*(.text)
|
*(.text*)
|
*(.rodata*) *(.strings)
|
*(.rodata*) *(.strings)
|
*(.data) *(COMMON) *(.bss)
|
*(.data) *(COMMON) *(.bss)
|
}> blkram
|
}> blkram
|
_sdram_image_start = . ;
|
_sdram_image_start = . ;
|
_sdram_image_end = . ;
|
_sdram_image_end = . ;
|