1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2022-11-27 10:16:14 +00:00

72 lines
1023 B
Plaintext

/*
* Ruby platform.
*
* flip memmap configuration.
*
* Unfortunately passing linker script through preprocessor is not implemented,
* so let's hard-code all values.
*/
OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc")
OUTPUT_ARCH(arc)
ENTRY(hello_world)
MEMORY
{
/*
* SRAM size is 256KB.
* SRAM from LHOST seen starting from 0x88000000 address.
* SRAM from MuC/DSP seen starting from 0x80000000 address.
* Let's reserve 64KB at the end of SRAM for stack and heap.
* Please keep it synchronized with include/configs/ruby.h
*/
sram : ORIGIN = 0x80000000, LENGTH = 256K - 64K
}
SECTIONS
{
.text :
{
*(.text)
} > sram
. = ALIGN(4);
.rodata :
{
*(.rodata)
*(.rodata.str*)
} > sram
. = ALIGN(4);
.data :
{
*(.data)
} > sram
. = ALIGN(4);
__bss_start = .;
.bss ABSOLUTE(.) :
{
*(.bss)
} > sram
. = ALIGN(4);
__bss_end = .;
.stack :
{
. += 16384;
*(.data)
} > sram
.heap :
{
*(.data)
} > sram
. = ALIGN(4);
uboot_end = .;
_end = .;
}