/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }
Fork of mbed by
TARGET_LPC11U35_401/TOOLCHAIN_GCC_ARM/LPC11U35.ld@93:9dd889aeda0e, 2014-12-05 (annotated)
- Committer:
- fblanc
- Date:
- Fri Dec 05 15:42:32 2014 +0000
- Revision:
- 93:9dd889aeda0e
- Parent:
- 81:7d30d6019079
substitute line 894 extern } by }; /TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 81:7d30d6019079 | 1 | /* Linker script to configure memory regions. */ |
bogdanm | 81:7d30d6019079 | 2 | MEMORY |
bogdanm | 81:7d30d6019079 | 3 | { |
bogdanm | 81:7d30d6019079 | 4 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 64K |
bogdanm | 81:7d30d6019079 | 5 | RAM (rwx) : ORIGIN = 0x100000C0, LENGTH = 0x1F40 |
bogdanm | 81:7d30d6019079 | 6 | USB_RAM (rwx): ORIGIN = 0x20004000, LENGTH = 0x800 |
bogdanm | 81:7d30d6019079 | 7 | } |
bogdanm | 81:7d30d6019079 | 8 | |
bogdanm | 81:7d30d6019079 | 9 | /* Linker script to place sections and symbol values. Should be used together |
bogdanm | 81:7d30d6019079 | 10 | * with other linker script that defines memory regions FLASH and RAM. |
bogdanm | 81:7d30d6019079 | 11 | * It references following symbols, which must be defined in code: |
bogdanm | 81:7d30d6019079 | 12 | * Reset_Handler : Entry of reset handler |
bogdanm | 81:7d30d6019079 | 13 | * |
bogdanm | 81:7d30d6019079 | 14 | * It defines following symbols, which code can use without definition: |
bogdanm | 81:7d30d6019079 | 15 | * __exidx_start |
bogdanm | 81:7d30d6019079 | 16 | * __exidx_end |
bogdanm | 81:7d30d6019079 | 17 | * __etext |
bogdanm | 81:7d30d6019079 | 18 | * __data_start__ |
bogdanm | 81:7d30d6019079 | 19 | * __preinit_array_start |
bogdanm | 81:7d30d6019079 | 20 | * __preinit_array_end |
bogdanm | 81:7d30d6019079 | 21 | * __init_array_start |
bogdanm | 81:7d30d6019079 | 22 | * __init_array_end |
bogdanm | 81:7d30d6019079 | 23 | * __fini_array_start |
bogdanm | 81:7d30d6019079 | 24 | * __fini_array_end |
bogdanm | 81:7d30d6019079 | 25 | * __data_end__ |
bogdanm | 81:7d30d6019079 | 26 | * __bss_start__ |
bogdanm | 81:7d30d6019079 | 27 | * __bss_end__ |
bogdanm | 81:7d30d6019079 | 28 | * __end__ |
bogdanm | 81:7d30d6019079 | 29 | * end |
bogdanm | 81:7d30d6019079 | 30 | * __HeapLimit |
bogdanm | 81:7d30d6019079 | 31 | * __StackLimit |
bogdanm | 81:7d30d6019079 | 32 | * __StackTop |
bogdanm | 81:7d30d6019079 | 33 | * __stack |
bogdanm | 81:7d30d6019079 | 34 | */ |
bogdanm | 81:7d30d6019079 | 35 | ENTRY(Reset_Handler) |
bogdanm | 81:7d30d6019079 | 36 | |
bogdanm | 81:7d30d6019079 | 37 | SECTIONS |
bogdanm | 81:7d30d6019079 | 38 | { |
bogdanm | 81:7d30d6019079 | 39 | .text : |
bogdanm | 81:7d30d6019079 | 40 | { |
bogdanm | 81:7d30d6019079 | 41 | KEEP(*(.isr_vector)) |
bogdanm | 81:7d30d6019079 | 42 | *(.text.Reset_Handler) |
bogdanm | 81:7d30d6019079 | 43 | |
bogdanm | 81:7d30d6019079 | 44 | /* Only vectors and code running at reset are safe to be in first 512 |
bogdanm | 81:7d30d6019079 | 45 | bytes since RAM can be mapped into this area for RAM based interrupt |
bogdanm | 81:7d30d6019079 | 46 | vectors. */ |
bogdanm | 81:7d30d6019079 | 47 | . = 0x00000200; |
bogdanm | 81:7d30d6019079 | 48 | *(.text*) |
bogdanm | 81:7d30d6019079 | 49 | |
bogdanm | 81:7d30d6019079 | 50 | KEEP(*(.init)) |
bogdanm | 81:7d30d6019079 | 51 | KEEP(*(.fini)) |
bogdanm | 81:7d30d6019079 | 52 | |
bogdanm | 81:7d30d6019079 | 53 | /* .ctors */ |
bogdanm | 81:7d30d6019079 | 54 | *crtbegin.o(.ctors) |
bogdanm | 81:7d30d6019079 | 55 | *crtbegin?.o(.ctors) |
bogdanm | 81:7d30d6019079 | 56 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) |
bogdanm | 81:7d30d6019079 | 57 | *(SORT(.ctors.*)) |
bogdanm | 81:7d30d6019079 | 58 | *(.ctors) |
bogdanm | 81:7d30d6019079 | 59 | |
bogdanm | 81:7d30d6019079 | 60 | /* .dtors */ |
bogdanm | 81:7d30d6019079 | 61 | *crtbegin.o(.dtors) |
bogdanm | 81:7d30d6019079 | 62 | *crtbegin?.o(.dtors) |
bogdanm | 81:7d30d6019079 | 63 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) |
bogdanm | 81:7d30d6019079 | 64 | *(SORT(.dtors.*)) |
bogdanm | 81:7d30d6019079 | 65 | *(.dtors) |
bogdanm | 81:7d30d6019079 | 66 | |
bogdanm | 81:7d30d6019079 | 67 | *(.rodata*) |
bogdanm | 81:7d30d6019079 | 68 | |
bogdanm | 81:7d30d6019079 | 69 | KEEP(*(.eh_frame*)) |
bogdanm | 81:7d30d6019079 | 70 | } > FLASH |
bogdanm | 81:7d30d6019079 | 71 | |
bogdanm | 81:7d30d6019079 | 72 | .ARM.extab : |
bogdanm | 81:7d30d6019079 | 73 | { |
bogdanm | 81:7d30d6019079 | 74 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
bogdanm | 81:7d30d6019079 | 75 | } > FLASH |
bogdanm | 81:7d30d6019079 | 76 | |
bogdanm | 81:7d30d6019079 | 77 | __exidx_start = .; |
bogdanm | 81:7d30d6019079 | 78 | .ARM.exidx : |
bogdanm | 81:7d30d6019079 | 79 | { |
bogdanm | 81:7d30d6019079 | 80 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
bogdanm | 81:7d30d6019079 | 81 | } > FLASH |
bogdanm | 81:7d30d6019079 | 82 | __exidx_end = .; |
bogdanm | 81:7d30d6019079 | 83 | |
bogdanm | 81:7d30d6019079 | 84 | __etext = .; |
bogdanm | 81:7d30d6019079 | 85 | |
bogdanm | 81:7d30d6019079 | 86 | .data : AT (__etext) |
bogdanm | 81:7d30d6019079 | 87 | { |
bogdanm | 81:7d30d6019079 | 88 | __data_start__ = .; |
bogdanm | 81:7d30d6019079 | 89 | *(vtable) |
bogdanm | 81:7d30d6019079 | 90 | *(.data*) |
bogdanm | 81:7d30d6019079 | 91 | |
bogdanm | 81:7d30d6019079 | 92 | . = ALIGN(4); |
bogdanm | 81:7d30d6019079 | 93 | /* preinit data */ |
bogdanm | 81:7d30d6019079 | 94 | PROVIDE (__preinit_array_start = .); |
bogdanm | 81:7d30d6019079 | 95 | KEEP(*(.preinit_array)) |
bogdanm | 81:7d30d6019079 | 96 | PROVIDE (__preinit_array_end = .); |
bogdanm | 81:7d30d6019079 | 97 | |
bogdanm | 81:7d30d6019079 | 98 | . = ALIGN(4); |
bogdanm | 81:7d30d6019079 | 99 | /* init data */ |
bogdanm | 81:7d30d6019079 | 100 | PROVIDE (__init_array_start = .); |
bogdanm | 81:7d30d6019079 | 101 | KEEP(*(SORT(.init_array.*))) |
bogdanm | 81:7d30d6019079 | 102 | KEEP(*(.init_array)) |
bogdanm | 81:7d30d6019079 | 103 | PROVIDE (__init_array_end = .); |
bogdanm | 81:7d30d6019079 | 104 | |
bogdanm | 81:7d30d6019079 | 105 | |
bogdanm | 81:7d30d6019079 | 106 | . = ALIGN(4); |
bogdanm | 81:7d30d6019079 | 107 | /* finit data */ |
bogdanm | 81:7d30d6019079 | 108 | PROVIDE (__fini_array_start = .); |
bogdanm | 81:7d30d6019079 | 109 | KEEP(*(SORT(.fini_array.*))) |
bogdanm | 81:7d30d6019079 | 110 | KEEP(*(.fini_array)) |
bogdanm | 81:7d30d6019079 | 111 | PROVIDE (__fini_array_end = .); |
bogdanm | 81:7d30d6019079 | 112 | |
bogdanm | 81:7d30d6019079 | 113 | . = ALIGN(4); |
bogdanm | 81:7d30d6019079 | 114 | /* All data end */ |
bogdanm | 81:7d30d6019079 | 115 | __data_end__ = .; |
bogdanm | 81:7d30d6019079 | 116 | |
bogdanm | 81:7d30d6019079 | 117 | } > RAM |
bogdanm | 81:7d30d6019079 | 118 | |
bogdanm | 81:7d30d6019079 | 119 | .bss : |
bogdanm | 81:7d30d6019079 | 120 | { |
bogdanm | 81:7d30d6019079 | 121 | __bss_start__ = .; |
bogdanm | 81:7d30d6019079 | 122 | *(.bss*) |
bogdanm | 81:7d30d6019079 | 123 | *(COMMON) |
bogdanm | 81:7d30d6019079 | 124 | __bss_end__ = .; |
bogdanm | 81:7d30d6019079 | 125 | } > RAM |
bogdanm | 81:7d30d6019079 | 126 | |
bogdanm | 81:7d30d6019079 | 127 | .heap : |
bogdanm | 81:7d30d6019079 | 128 | { |
bogdanm | 81:7d30d6019079 | 129 | __end__ = .; |
bogdanm | 81:7d30d6019079 | 130 | end = __end__; |
bogdanm | 81:7d30d6019079 | 131 | *(.heap*) |
bogdanm | 81:7d30d6019079 | 132 | __HeapLimit = .; |
bogdanm | 81:7d30d6019079 | 133 | } > RAM |
bogdanm | 81:7d30d6019079 | 134 | |
bogdanm | 81:7d30d6019079 | 135 | /* .stack_dummy section doesn't contains any symbols. It is only |
bogdanm | 81:7d30d6019079 | 136 | * used for linker to calculate size of stack sections, and assign |
bogdanm | 81:7d30d6019079 | 137 | * values to stack symbols later */ |
bogdanm | 81:7d30d6019079 | 138 | .stack_dummy : |
bogdanm | 81:7d30d6019079 | 139 | { |
bogdanm | 81:7d30d6019079 | 140 | *(.stack) |
bogdanm | 81:7d30d6019079 | 141 | } > RAM |
bogdanm | 81:7d30d6019079 | 142 | |
bogdanm | 81:7d30d6019079 | 143 | /* Set stack top to end of RAM, and stack limit move down by |
bogdanm | 81:7d30d6019079 | 144 | * size of stack_dummy section */ |
bogdanm | 81:7d30d6019079 | 145 | __StackTop = ORIGIN(RAM) + LENGTH(RAM); |
bogdanm | 81:7d30d6019079 | 146 | __StackLimit = __StackTop - SIZEOF(.stack_dummy); |
bogdanm | 81:7d30d6019079 | 147 | PROVIDE(__stack = __StackTop); |
bogdanm | 81:7d30d6019079 | 148 | |
bogdanm | 81:7d30d6019079 | 149 | /* Check if data + heap + stack exceeds RAM limit */ |
bogdanm | 81:7d30d6019079 | 150 | ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack") |
bogdanm | 81:7d30d6019079 | 151 | } |