Sean Cross
e8aaac5cfe
The software is untested, but it builds. Signed-off-by: Sean Cross <sean@xobs.io>
56 lines
882 B
Plaintext
56 lines
882 B
Plaintext
INCLUDE output_format.ld
|
|
ENTRY(_start)
|
|
|
|
__DYNAMIC = 0;
|
|
|
|
INCLUDE regions.ld
|
|
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
_ftext = .;
|
|
*(.text.start)
|
|
*(.text .stub .text.* .gnu.linkonce.t.*)
|
|
_etext = .;
|
|
} > rom
|
|
|
|
.rodata :
|
|
{
|
|
. = ALIGN(4);
|
|
_frodata = .;
|
|
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
|
*(.rodata1)
|
|
*(.srodata)
|
|
_erodata = .;
|
|
} > rom
|
|
|
|
.data : AT (ADDR(.rodata) + SIZEOF (.rodata))
|
|
{
|
|
. = ALIGN(4);
|
|
_fdata = .;
|
|
*(.data .data.* .gnu.linkonce.d.*)
|
|
*(.data1)
|
|
_gp = ALIGN(16);
|
|
*(.sdata .sdata.* .gnu.linkonce.s.* .sdata2 .sdata2.*)
|
|
_edata = ALIGN(16); /* Make sure _edata is >= _gp. */
|
|
} > sram
|
|
|
|
.bss :
|
|
{
|
|
. = ALIGN(4);
|
|
_fbss = .;
|
|
*(.dynsbss)
|
|
*(.sbss .sbss.* .gnu.linkonce.sb.*)
|
|
*(.scommon)
|
|
*(.dynbss)
|
|
*(.bss .bss.* .gnu.linkonce.b.*)
|
|
*(COMMON)
|
|
. = ALIGN(4);
|
|
_ebss = .;
|
|
_end = .;
|
|
} > sram
|
|
}
|
|
|
|
PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram) - 4);
|