source: rtems/c/src/lib/libbsp/arm/lpc176x/startup/linkcmds.lpc1768_mbed_ahb_ram_eth @ 90f44cd2

4.115
Last change on this file since 90f44cd2 was f59e64f2, checked in by Federico Casares <federico.casares@…>, on Sep 9, 2014 at 1:48:21 PM

arm/lpc176x: Adding "eth" linker script section.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/* LPC1768 OEM Board from Embedded Artists */
2
3MEMORY {
4        ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 512k
5        RAM_INT (AIW) : ORIGIN = 0x10000000, LENGTH = 32k
6        RAM_AHB1 (AIW) : ORIGIN = 0x2007C000, LENGTH = 16k
7        RAM_AHB2 (AIW) : ORIGIN = 0x20080000, LENGTH = 16k
8}
9
10REGION_ALIAS ("REGION_START", ROM_INT);
11REGION_ALIAS ("REGION_VECTOR", RAM_INT);
12REGION_ALIAS ("REGION_TEXT", ROM_INT);
13REGION_ALIAS ("REGION_TEXT_LOAD", ROM_INT);
14REGION_ALIAS ("REGION_RODATA", ROM_INT);
15REGION_ALIAS ("REGION_RODATA_LOAD", ROM_INT);
16REGION_ALIAS ("REGION_DATA", RAM_INT);
17REGION_ALIAS ("REGION_DATA_LOAD", ROM_INT);
18REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT);
19REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM_INT);
20REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);
21REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM_INT);
22REGION_ALIAS ("REGION_BSS", RAM_AHB1);
23REGION_ALIAS ("REGION_WORK", RAM_INT);
24REGION_ALIAS ("REGION_STACK", RAM_INT);
25REGION_ALIAS ("REGION_ETH", RAM_AHB2);
26
27bsp_stack_main_size = DEFINED (bsp_stack_main_size) ? bsp_stack_main_size : 1024;
28bsp_stack_main_size = ALIGN (bsp_stack_main_size, bsp_stack_align);
29
30SECTIONS {
31    .eth (NOLOAD) : ALIGN_WITH_INPUT {
32        bsp_section_eth_begin = .;
33        *(.eth)
34        bsp_section_eth_end = .;
35    } > REGION_ETH AT > REGION_ETH
36    bsp_section_eth_size = bsp_section_eth_end - bsp_section_eth_begin;
37}
38
39INCLUDE linkcmds.armv7m
Note: See TracBrowser for help on using the repository browser.