| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- /*
- * Copyright 2012 by Embedded Technologies s.r.o
- *
- * 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 copyright holders nor the names of
- * 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
- * COPYRIGHT OWNER 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.
- *
- * For additional information see http://www.ethernut.de/
- */
- OUTPUT_ARCH(m68k)
- STARTUP(crt_common.o)
- INPUT(crt_mcf5225x.o)
- INPUT(libnutarch.a) /* FIXME: Remove this temporary fix */
- INPUT(crt_mcf5225x_512_rom.o)
- ENTRY(_start)
- /*
- * Memory regions
- */
- MEMORY
- {
- bootloader(r) : ORIGIN = 0x00000000, LENGTH = 0
- rom(rx) : ORIGIN = 0x00000000 + LENGTH(bootloader), LENGTH = 512K - LENGTH(bootloader)
- intram(rwx) : ORIGIN = 0x20000000, LENGTH = 64K
- ipsbar(rw) : ORIGIN = 0x40000000, LENGTH = 1024M
- extram(rwx) : ORIGIN = 0x80000000, LENGTH = 0
- }
- /*
- * Symbols for CPU initialization
- */
- PROVIDE (__intram_start = ORIGIN(intram));
- PROVIDE (__intram_size = LENGTH(intram));
- PROVIDE (__extram_start = ORIGIN(extram));
- PROVIDE (__extram_size = LENGTH(extram));
- PROVIDE (__rambar = __intram_start);
- PROVIDE (__flashbar = ORIGIN(bootloader));
- PROVIDE (__ipsbar = ORIGIN(ipsbar));
- PROVIDE (__stack_init = __intram_start + __intram_size);
- /*
- * Symbols required for Nut/OS initialization
- */
- PROVIDE (__stack_heap_start = 0);
- PROVIDE (__stack_heap_size = 0);
- PROVIDE (__heap_start = __bss_end);
- PROVIDE (__heap_size = __intram_size - (__heap_start - __intram_start));
- PROVIDE (__heap2_start = 0);
- PROVIDE (__heap2_size = 0);
- /*
- * VMA - Virtual Memory Addresses
- * This are the addresses the sections will have when the code is running
- * (after code relocation)
- */
- REGION_ALIAS("REGION_TEXT", rom);
- REGION_ALIAS("REGION_RODATA", rom);
- REGION_ALIAS("REGION_DATA", intram);
- REGION_ALIAS("REGION_DATA_INT", intram);
- REGION_ALIAS("REGION_BSS", intram);
- REGION_ALIAS("REGION_BSS_INT", intram);
- /*
- * LMA - Load Memory Address
- * This is the address at which the code will be placed after power on
- * (before code relocation)
- */
- REGION_ALIAS("REGION_LOAD", rom);
- /*
- * Sections description
- */
- INCLUDE sections.ld
|