parent
f916787572
commit
58cb641ca1
Binary file not shown.
Binary file not shown.
@ -0,0 +1,89 @@ |
||||
INCLUDE linker/output_format.ld |
||||
/* ENTRY(_start) */ |
||||
ENTRY(illumination) |
||||
|
||||
INCLUDE ../build/colorlight_5a_75b/software/include/generated/regions.ld |
||||
|
||||
MEMORY { |
||||
main_ram2 : ORIGIN = 0x40200000, LENGTH = 0x00200000 |
||||
} |
||||
|
||||
SECTIONS |
||||
{ |
||||
.text : |
||||
{ |
||||
_ftext = .; |
||||
/* Make sure crt0 files come first, and they, and the isr */ |
||||
/* don't get disposed of by greedy optimisation */ |
||||
*crt0*(.text) |
||||
KEEP(*crt0*(.text)) |
||||
KEEP(*(.text.isr)) |
||||
|
||||
*(.text .stub .text.* .gnu.linkonce.t.*) |
||||
_etext = .; |
||||
} > main_ram2 |
||||
|
||||
.rodata : |
||||
{ |
||||
. = ALIGN(8); |
||||
_frodata = .; |
||||
*(.rodata .rodata.* .gnu.linkonce.r.*) |
||||
*(.rodata1) |
||||
*(.got .got.*) |
||||
*(.toc .toc.*) |
||||
|
||||
/* Make sure the file is aligned on disk as well |
||||
as in memory; CRC calculation requires that. */ |
||||
FILL(0); |
||||
. = ALIGN(8); |
||||
_erodata = .; |
||||
} > main_ram2 |
||||
|
||||
.commands : |
||||
{ |
||||
PROVIDE_HIDDEN (__bios_cmd_start = .); |
||||
KEEP(*(.bios_cmd)) |
||||
PROVIDE_HIDDEN (__bios_cmd_end = .); |
||||
} > main_ram2 |
||||
|
||||
.data : |
||||
{ |
||||
. = ALIGN(8); |
||||
_fdata = .; |
||||
*(.data .data.* .gnu.linkonce.d.*) |
||||
*(.data1) |
||||
*(.sdata .sdata.* .gnu.linkonce.s.*) |
||||
|
||||
/* Make sure the file is aligned on disk as well |
||||
as in memory; CRC calculation requires that. */ |
||||
FILL(0); |
||||
. = ALIGN(8); |
||||
_edata = .; |
||||
} > sram AT > main_ram2 |
||||
|
||||
.bss : |
||||
{ |
||||
. = ALIGN(8); |
||||
_fbss = .; |
||||
*(.dynsbss) |
||||
*(.sbss .sbss.* .gnu.linkonce.sb.*) |
||||
*(.scommon) |
||||
*(.dynbss) |
||||
*(.bss .bss.* .gnu.linkonce.b.*) |
||||
*(COMMON) |
||||
. = ALIGN(8); |
||||
_ebss = .; |
||||
_end = .; |
||||
} > sram AT > main_ram2 |
||||
|
||||
/DISCARD/ : |
||||
{ |
||||
*(.eh_frame) |
||||
*(.comment) |
||||
} |
||||
} |
||||
|
||||
PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram) - 8); |
||||
|
||||
PROVIDE(_fdata_rom = LOADADDR(.data)); |
||||
PROVIDE(_edata_rom = LOADADDR(.data) + SIZEOF(.data)); |
Loading…
Reference in new issue