diff options
Diffstat (limited to 'cmake/elfinfo/lds/d2000.ld')
-rw-r--r-- | cmake/elfinfo/lds/d2000.ld | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/cmake/elfinfo/lds/d2000.ld b/cmake/elfinfo/lds/d2000.ld new file mode 100644 index 0000000..ef253c6 --- /dev/null +++ b/cmake/elfinfo/lds/d2000.ld @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2015, Intel Corporation + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. Neither the name of the Intel Corporation nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL CORPORATION OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +ENTRY(_start) + +MEMORY +{ + flash(r) : ORIGIN = 0x00180000, LENGTH = 32K + data(rw) : ORIGIN = 0x00200000, LENGTH = 4K + /* Place IDT at the bottom of SRAM, 52 gate wide */ + esram_idt (rw) : ORIGIN = 0x00280000, LENGTH = 0x1A0 + esram(rw) : ORIGIN = 0x002801A0, LENGTH = 8K - 1K - 0x1A0 + stack(rw) : ORIGIN = 0x00281C00, LENGTH = 1K +} + +/* IDT definition */ +__idt_start = ORIGIN(esram_idt); +__idt_end = __idt_start + LENGTH(esram_idt); + +SECTIONS +{ + .text : + { + *(.text.entry) + *(.text) + *(.text.last) + *(.text.*) + } >flash + + .rodata : + { + *(.rdata*) + *(.rodata*) + } >flash + + .data : + { + *(.data*) + } >esram AT>flash + + .bss : + { + *(.bss*) + *(COMMON) + } >esram AT>esram + + /* Symbols for C runtime init code. */ + __data_lma = LOADADDR(.data); + __data_vma = ADDR(.data); + __data_size = SIZEOF(.data); + __bss_start = ADDR(.bss); + __bss_end = __bss_start + SIZEOF(.bss); + + /* Heap */ + __heap = .; + __heap_end = ORIGIN(stack); + + .comment 0 : { *(.comment) } +} |