Files
Horizon-OC/Source/sys-clk/bpmp/linker.ld
souldbminersmwc e1c66815f9 add bpmp basics
2026-03-08 18:13:15 -04:00

69 lines
1.3 KiB
Plaintext

/*
* Copyright (c) Souldbminer
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
MEMORY
{
SRAM (rwx) : ORIGIN = 0x60000000, LENGTH = 32K
}
ENTRY(Reset_Handler)
SECTIONS
{
.vectors :
{
KEEP(*(.vectors))
. = ALIGN(4);
} > SRAM
.text :
{
*(.text*)
*(.rodata*)
. = ALIGN(4);
} > SRAM
.data :
{
_sdata = .;
*(.data*)
_edata = .;
. = ALIGN(4);
} > SRAM
_sidata = _edata;
.bss :
{
_sbss = .;
*(.bss*)
*(COMMON)
_ebss = .;
. = ALIGN(4);
} > SRAM
/* Stack at end of SRAM */
_estack = ORIGIN(SRAM) + LENGTH(SRAM);
/* Discard debug sections */
/DISCARD/ :
{
*(.debug_*)
*(.comment)
}
}