/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_UBLOX_C027/TOOLCHAIN_GCC_CS/LPC1768.ld@93:9dd889aeda0e, 2014-12-05 (annotated)
- Committer:
- fblanc
- Date:
- Fri Dec 05 15:42:32 2014 +0000
- Revision:
- 93:9dd889aeda0e
- Parent:
- 77:869cf507173a
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 |
---|---|---|---|
emilmont | 77:869cf507173a | 1 | /* Linker script for mbed LPC1768 |
emilmont | 77:869cf507173a | 2 | * |
emilmont | 77:869cf507173a | 3 | * Version:CodeSourcery Sourcery G++ Lite 2007q3-53 |
emilmont | 77:869cf507173a | 4 | * BugURL:https://support.codesourcery.com/GNUToolchain/ |
emilmont | 77:869cf507173a | 5 | * |
emilmont | 77:869cf507173a | 6 | * Copyright 2007 CodeSourcery. |
emilmont | 77:869cf507173a | 7 | * |
emilmont | 77:869cf507173a | 8 | * The authors hereby grant permission to use, copy, modify, distribute, |
emilmont | 77:869cf507173a | 9 | * and license this software and its documentation for any purpose, provided |
emilmont | 77:869cf507173a | 10 | * that existing copyright notices are retained in all copies and that this |
emilmont | 77:869cf507173a | 11 | * notice is included verbatim in any distributions. No written agreement, |
emilmont | 77:869cf507173a | 12 | * license, or royalty fee is required for any of the authorized uses. |
emilmont | 77:869cf507173a | 13 | * Modifications to this software may be copyrighted by their authors |
emilmont | 77:869cf507173a | 14 | * and need not follow the licensing terms described here, provided that |
emilmont | 77:869cf507173a | 15 | * the new terms are clearly indicated on the first page of each file where |
emilmont | 77:869cf507173a | 16 | * they apply. */ |
emilmont | 77:869cf507173a | 17 | OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") |
emilmont | 77:869cf507173a | 18 | ENTRY(__cs3_reset_cortex_m) |
emilmont | 77:869cf507173a | 19 | SEARCH_DIR(.) |
emilmont | 77:869cf507173a | 20 | |
emilmont | 77:869cf507173a | 21 | /* |
emilmont | 77:869cf507173a | 22 | ram ORIGIN: 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8 |
emilmont | 77:869cf507173a | 23 | ram LENGTH: 32KB - 0xC8 = 0x7F38 |
emilmont | 77:869cf507173a | 24 | */ |
emilmont | 77:869cf507173a | 25 | MEMORY |
emilmont | 77:869cf507173a | 26 | { |
emilmont | 77:869cf507173a | 27 | rom (rx) : ORIGIN = 0x00000000, LENGTH = 512K |
emilmont | 77:869cf507173a | 28 | |
emilmont | 77:869cf507173a | 29 | ram (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F38 |
emilmont | 77:869cf507173a | 30 | |
emilmont | 77:869cf507173a | 31 | ram1(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K |
emilmont | 77:869cf507173a | 32 | ram2(rwx) : ORIGIN = 0x20080000, LENGTH = 16K |
emilmont | 77:869cf507173a | 33 | } |
emilmont | 77:869cf507173a | 34 | |
emilmont | 77:869cf507173a | 35 | /* These force the linker to search for particular symbols from |
emilmont | 77:869cf507173a | 36 | * the start of the link process and thus ensure the user's |
emilmont | 77:869cf507173a | 37 | * overrides are picked up |
emilmont | 77:869cf507173a | 38 | */ |
emilmont | 77:869cf507173a | 39 | EXTERN(__cs3_reset_cortex_m) |
emilmont | 77:869cf507173a | 40 | EXTERN(__cs3_interrupt_vector_cortex_m) |
emilmont | 77:869cf507173a | 41 | EXTERN(__cs3_start_c main __cs3_stack __cs3_stack_size __cs3_heap_end) |
emilmont | 77:869cf507173a | 42 | |
emilmont | 77:869cf507173a | 43 | PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); |
emilmont | 77:869cf507173a | 44 | PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end); |
emilmont | 77:869cf507173a | 45 | PROVIDE(__cs3_heap_start = _end); |
emilmont | 77:869cf507173a | 46 | PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); |
emilmont | 77:869cf507173a | 47 | |
emilmont | 77:869cf507173a | 48 | SECTIONS |
emilmont | 77:869cf507173a | 49 | { |
emilmont | 77:869cf507173a | 50 | .text : |
emilmont | 77:869cf507173a | 51 | { |
emilmont | 77:869cf507173a | 52 | CREATE_OBJECT_SYMBOLS |
emilmont | 77:869cf507173a | 53 | __cs3_region_start_rom = .; |
emilmont | 77:869cf507173a | 54 | *(.cs3.region-head.rom) |
emilmont | 77:869cf507173a | 55 | __cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m; |
emilmont | 77:869cf507173a | 56 | *(.cs3.interrupt_vector) |
emilmont | 77:869cf507173a | 57 | /* Make sure we pulled in an interrupt vector. */ |
emilmont | 77:869cf507173a | 58 | ASSERT (. != __cs3_interrupt_vector_cortex_m, "No interrupt vector"); |
emilmont | 77:869cf507173a | 59 | *(.rom) |
emilmont | 77:869cf507173a | 60 | *(.rom.b) |
emilmont | 77:869cf507173a | 61 | |
emilmont | 77:869cf507173a | 62 | __cs3_reset = __cs3_reset_cortex_m; |
emilmont | 77:869cf507173a | 63 | *(.cs3.reset) |
emilmont | 77:869cf507173a | 64 | /* Make sure we pulled in some reset code. */ |
emilmont | 77:869cf507173a | 65 | ASSERT (. != __cs3_reset, "No reset code"); |
emilmont | 77:869cf507173a | 66 | |
emilmont | 77:869cf507173a | 67 | *(.text .text.* .gnu.linkonce.t.*) |
emilmont | 77:869cf507173a | 68 | *(.plt) |
emilmont | 77:869cf507173a | 69 | *(.gnu.warning) |
emilmont | 77:869cf507173a | 70 | *(.glue_7t) *(.glue_7) *(.vfp11_veneer) |
emilmont | 77:869cf507173a | 71 | |
emilmont | 77:869cf507173a | 72 | *(.rodata .rodata.* .gnu.linkonce.r.*) |
emilmont | 77:869cf507173a | 73 | |
emilmont | 77:869cf507173a | 74 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
emilmont | 77:869cf507173a | 75 | *(.gcc_except_table) |
emilmont | 77:869cf507173a | 76 | *(.eh_frame_hdr) |
emilmont | 77:869cf507173a | 77 | *(.eh_frame) |
emilmont | 77:869cf507173a | 78 | |
emilmont | 77:869cf507173a | 79 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 80 | KEEP(*(.init)) |
emilmont | 77:869cf507173a | 81 | |
emilmont | 77:869cf507173a | 82 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 83 | __preinit_array_start = .; |
emilmont | 77:869cf507173a | 84 | KEEP (*(.preinit_array)) |
emilmont | 77:869cf507173a | 85 | __preinit_array_end = .; |
emilmont | 77:869cf507173a | 86 | |
emilmont | 77:869cf507173a | 87 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 88 | __init_array_start = .; |
emilmont | 77:869cf507173a | 89 | KEEP (*(SORT(.init_array.*))) |
emilmont | 77:869cf507173a | 90 | KEEP (*(.init_array)) |
emilmont | 77:869cf507173a | 91 | __init_array_end = .; |
emilmont | 77:869cf507173a | 92 | |
emilmont | 77:869cf507173a | 93 | . = ALIGN(0x4); |
emilmont | 77:869cf507173a | 94 | KEEP (*crtbegin.o(.ctors)) |
emilmont | 77:869cf507173a | 95 | KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) |
emilmont | 77:869cf507173a | 96 | KEEP (*(SORT(.ctors.*))) |
emilmont | 77:869cf507173a | 97 | KEEP (*crtend.o(.ctors)) |
emilmont | 77:869cf507173a | 98 | |
emilmont | 77:869cf507173a | 99 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 100 | KEEP(*(.fini)) |
emilmont | 77:869cf507173a | 101 | |
emilmont | 77:869cf507173a | 102 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 103 | __fini_array_start = .; |
emilmont | 77:869cf507173a | 104 | KEEP (*(.fini_array)) |
emilmont | 77:869cf507173a | 105 | KEEP (*(SORT(.fini_array.*))) |
emilmont | 77:869cf507173a | 106 | __fini_array_end = .; |
emilmont | 77:869cf507173a | 107 | |
emilmont | 77:869cf507173a | 108 | KEEP (*crtbegin.o(.dtors)) |
emilmont | 77:869cf507173a | 109 | KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) |
emilmont | 77:869cf507173a | 110 | KEEP (*(SORT(.dtors.*))) |
emilmont | 77:869cf507173a | 111 | KEEP (*crtend.o(.dtors)) |
emilmont | 77:869cf507173a | 112 | |
emilmont | 77:869cf507173a | 113 | . = ALIGN(4); |
emilmont | 77:869cf507173a | 114 | __cs3_regions = .; |
emilmont | 77:869cf507173a | 115 | LONG (0) |
emilmont | 77:869cf507173a | 116 | LONG (__cs3_region_init_ram) |
emilmont | 77:869cf507173a | 117 | LONG (__cs3_region_start_ram) |
emilmont | 77:869cf507173a | 118 | LONG (__cs3_region_init_size_ram) |
emilmont | 77:869cf507173a | 119 | LONG (__cs3_region_zero_size_ram) |
emilmont | 77:869cf507173a | 120 | } |
emilmont | 77:869cf507173a | 121 | |
emilmont | 77:869cf507173a | 122 | /* .ARM.exidx is sorted, so has to go in its own output section. */ |
emilmont | 77:869cf507173a | 123 | __exidx_start = .; |
emilmont | 77:869cf507173a | 124 | .ARM.exidx : |
emilmont | 77:869cf507173a | 125 | { |
emilmont | 77:869cf507173a | 126 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
emilmont | 77:869cf507173a | 127 | } >rom |
emilmont | 77:869cf507173a | 128 | __exidx_end = .; |
emilmont | 77:869cf507173a | 129 | .text.align : |
emilmont | 77:869cf507173a | 130 | { |
emilmont | 77:869cf507173a | 131 | . = ALIGN(8); |
emilmont | 77:869cf507173a | 132 | _etext = .; |
emilmont | 77:869cf507173a | 133 | } >rom |
emilmont | 77:869cf507173a | 134 | __cs3_region_size_rom = LENGTH(rom); |
emilmont | 77:869cf507173a | 135 | __cs3_region_num = 1; |
emilmont | 77:869cf507173a | 136 | |
emilmont | 77:869cf507173a | 137 | .data : |
emilmont | 77:869cf507173a | 138 | { |
emilmont | 77:869cf507173a | 139 | __cs3_region_start_ram = .; |
emilmont | 77:869cf507173a | 140 | *(.cs3.region-head.ram) |
emilmont | 77:869cf507173a | 141 | KEEP(*(.jcr)) |
emilmont | 77:869cf507173a | 142 | *(.got.plt) *(.got) |
emilmont | 77:869cf507173a | 143 | *(.shdata) |
emilmont | 77:869cf507173a | 144 | *(.data .data.* .gnu.linkonce.d.*) |
emilmont | 77:869cf507173a | 145 | *(.ram) |
emilmont | 77:869cf507173a | 146 | . = ALIGN (8); |
emilmont | 77:869cf507173a | 147 | _edata = .; |
emilmont | 77:869cf507173a | 148 | } >ram AT>rom |
emilmont | 77:869cf507173a | 149 | .bss : |
emilmont | 77:869cf507173a | 150 | { |
emilmont | 77:869cf507173a | 151 | *(.shbss) |
emilmont | 77:869cf507173a | 152 | *(.bss .bss.* .gnu.linkonce.b.*) |
emilmont | 77:869cf507173a | 153 | *(COMMON) |
emilmont | 77:869cf507173a | 154 | *(.ram.b) |
emilmont | 77:869cf507173a | 155 | . = ALIGN (8); |
emilmont | 77:869cf507173a | 156 | _end = .; |
emilmont | 77:869cf507173a | 157 | __end = .; |
emilmont | 77:869cf507173a | 158 | } >ram AT>rom |
emilmont | 77:869cf507173a | 159 | /* This used for USB RAM section */ |
emilmont | 77:869cf507173a | 160 | .usb_ram (NOLOAD): |
emilmont | 77:869cf507173a | 161 | { |
emilmont | 77:869cf507173a | 162 | *.o (USB_RAM) |
emilmont | 77:869cf507173a | 163 | } > ram2 |
emilmont | 77:869cf507173a | 164 | .heap (NOLOAD) : |
emilmont | 77:869cf507173a | 165 | { |
emilmont | 77:869cf507173a | 166 | *(.heap) |
emilmont | 77:869cf507173a | 167 | } >ram |
emilmont | 77:869cf507173a | 168 | .stack (__cs3_stack - __cs3_stack_size) (NOLOAD): |
emilmont | 77:869cf507173a | 169 | { |
emilmont | 77:869cf507173a | 170 | *(.stack) |
emilmont | 77:869cf507173a | 171 | _estack = .; |
emilmont | 77:869cf507173a | 172 | PROVIDE(estack = .); |
emilmont | 77:869cf507173a | 173 | } >ram |
emilmont | 77:869cf507173a | 174 | |
emilmont | 77:869cf507173a | 175 | __cs3_region_init_ram = LOADADDR (.data); |
emilmont | 77:869cf507173a | 176 | __cs3_region_init_size_ram = _edata - __cs3_region_start_ram; |
emilmont | 77:869cf507173a | 177 | __cs3_region_zero_size_ram = _end - _edata; |
emilmont | 77:869cf507173a | 178 | __cs3_region_size_ram = LENGTH(ram); |
emilmont | 77:869cf507173a | 179 | __cs3_region_num = 1; |
emilmont | 77:869cf507173a | 180 | |
emilmont | 77:869cf507173a | 181 | .stab 0 (NOLOAD) : { *(.stab) } |
emilmont | 77:869cf507173a | 182 | .stabstr 0 (NOLOAD) : { *(.stabstr) } |
emilmont | 77:869cf507173a | 183 | /* DWARF debug sections. |
emilmont | 77:869cf507173a | 184 | * Symbols in the DWARF debugging sections are relative to the beginning |
emilmont | 77:869cf507173a | 185 | * of the section so we begin them at 0. */ |
emilmont | 77:869cf507173a | 186 | /* DWARF 1 */ |
emilmont | 77:869cf507173a | 187 | .debug 0 : { *(.debug) } |
emilmont | 77:869cf507173a | 188 | .line 0 : { *(.line) } |
emilmont | 77:869cf507173a | 189 | /* GNU DWARF 1 extensions */ |
emilmont | 77:869cf507173a | 190 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
emilmont | 77:869cf507173a | 191 | .debug_sfnames 0 : { *(.debug_sfnames) } |
emilmont | 77:869cf507173a | 192 | /* DWARF 1.1 and DWARF 2 */ |
emilmont | 77:869cf507173a | 193 | .debug_aranges 0 : { *(.debug_aranges) } |
emilmont | 77:869cf507173a | 194 | .debug_pubnames 0 : { *(.debug_pubnames) } |
emilmont | 77:869cf507173a | 195 | /* DWARF 2 */ |
emilmont | 77:869cf507173a | 196 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } |
emilmont | 77:869cf507173a | 197 | .debug_abbrev 0 : { *(.debug_abbrev) } |
emilmont | 77:869cf507173a | 198 | .debug_line 0 : { *(.debug_line) } |
emilmont | 77:869cf507173a | 199 | .debug_frame 0 : { *(.debug_frame) } |
emilmont | 77:869cf507173a | 200 | .debug_str 0 : { *(.debug_str) } |
emilmont | 77:869cf507173a | 201 | .debug_loc 0 : { *(.debug_loc) } |
emilmont | 77:869cf507173a | 202 | .debug_macinfo 0 : { *(.debug_macinfo) } |
emilmont | 77:869cf507173a | 203 | /* SGI/MIPS DWARF 2 extensions */ |
emilmont | 77:869cf507173a | 204 | .debug_weaknames 0 : { *(.debug_weaknames) } |
emilmont | 77:869cf507173a | 205 | .debug_funcnames 0 : { *(.debug_funcnames) } |
emilmont | 77:869cf507173a | 206 | .debug_typenames 0 : { *(.debug_typenames) } |
emilmont | 77:869cf507173a | 207 | .debug_varnames 0 : { *(.debug_varnames) } |
emilmont | 77:869cf507173a | 208 | |
emilmont | 77:869cf507173a | 209 | .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } |
emilmont | 77:869cf507173a | 210 | .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) } |
emilmont | 77:869cf507173a | 211 | /DISCARD/ : { *(.note.GNU-stack) } |
emilmont | 77:869cf507173a | 212 | } |