⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lpc2106-rom.ln

📁 基于lpc2106和OV6620的源代码
💻 LN
字号:
/* * Copyright 2006-2007  Anthony Rowe and Adam Goode * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *//* *  Copyright 2007 CodeSourcery. * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided * that existing copyright notices are retained in all copies and that this * notice is included verbatim in any distributions. No written agreement, * license, or royalty fee is required for any of the authorized uses. * Modifications to this software may be copyrighted by their authors * and need not follow the licensing terms described here, provided that * the new terms are clearly indicated on the first page of each file where * they apply. *//*  Linker Script File    */ENTRY(_boot)STACK_SIZE = 0x2400;MEMORY{  ROM (rx) : ORIGIN = 0x00000000, LENGTH = 120K  RAM (rw) : ORIGIN = 0x40000000, LENGTH = 64K}/* Section Definitions */SECTIONS{  /* .text in ROM which is used for code */  .text :  {    KEEP(*(.boot))    *(.text .text.* .gnu.linkonce.t.*)    *(.plt)    *(.gnu.warning)    *(.glue_7t) *(.glue_7) *(.vfp11_veneer)    *(.rodata .rodata.* .gnu.linkonce.r.*)    *(.ARM.extab* .gnu.linkonce.armextab.*)    *(.gcc_except_table)    *(.eh_frame_hdr)    *(.eh_frame)    . = ALIGN(4);    KEEP(*(.init))    . = ALIGN(4);    __preinit_array_start = .;    KEEP (*(.preinit_array))    __preinit_array_end = .;    . = ALIGN(4);    __init_array_start = .;    KEEP (*(SORT(.init_array.*)))    KEEP (*(.init_array))    __init_array_end = .;    . = ALIGN(0x4);    KEEP (*crtbegin.o(.ctors))    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))    KEEP (*(SORT(.ctors.*)))    KEEP (*crtend.o(.ctors))    . = ALIGN(4);    KEEP(*(.fini))    . = ALIGN(4);    __fini_array_start = .;    KEEP (*(.fini_array))    KEEP (*(SORT(.fini_array.*)))    __fini_array_end = .;    KEEP (*crtbegin.o(.dtors))    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))    KEEP (*(SORT(.dtors.*)))    KEEP (*crtend.o(.dtors))  } > ROM  /* .ARM.exidx is sorted, so has to go in its own output section.  */  __exidx_start = .;  .ARM.exidx :  {    *(.ARM.exidx* .gnu.linkonce.armexidx.*)  } > ROM  __exidx_end = .;  .text.align :  {    . = ALIGN(8);    _etext = .;  } > ROM  /* first in RAM is the stack, which grows down (ultimately past RAM where     it can trigger a data abort on overflow) */  .stack :  {    . += STACK_SIZE;    _stack = .;  } > RAM  /* .data section which is used for initialized data     (takes space in both ROM and RAM) */  .data :  {    _data = .;    KEEP(*(.jcr))    *(.got.plt) *(.got)    *(.shdata)    *(.data .data.* .gnu.linkonce.d.*)    *(.ram)    . = ALIGN (8);    _edata = .;  } > RAM  AT > ROM  /* .bss section which is used for uninitialized data (just in RAM) */  .bss (NOLOAD) :  {    _bss = .;    *(.shbss)    *(.bss .bss.* .gnu.linkonce.b.*)    *(COMMON)    *(.ram.b)    . = ALIGN (8);    _end = .;    __end = .;  } > RAM  /* mark the end of the heap */  _heap_end = ORIGIN(RAM) + LENGTH(RAM);  .stab 0 (NOLOAD) : { *(.stab) }  .stabstr 0 (NOLOAD) : { *(.stabstr) }  /* DWARF debug sections.   * Symbols in the DWARF debugging sections are relative to the beginning   * of the section so we begin them at 0.  */  /* DWARF 1 */  .debug          0 : { *(.debug) }  .line           0 : { *(.line) }  /* GNU DWARF 1 extensions */  .debug_srcinfo  0 : { *(.debug_srcinfo) }  .debug_sfnames  0 : { *(.debug_sfnames) }  /* DWARF 1.1 and DWARF 2 */  .debug_aranges  0 : { *(.debug_aranges) }  .debug_pubnames 0 : { *(.debug_pubnames) }  /* DWARF 2 */  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }  .debug_abbrev   0 : { *(.debug_abbrev) }  .debug_line     0 : { *(.debug_line) }  .debug_frame    0 : { *(.debug_frame) }  .debug_str      0 : { *(.debug_str) }  .debug_loc      0 : { *(.debug_loc) }  .debug_macinfo  0 : { *(.debug_macinfo) }  /* SGI/MIPS DWARF 2 extensions */  .debug_weaknames 0 : { *(.debug_weaknames) }  .debug_funcnames 0 : { *(.debug_funcnames) }  .debug_typenames 0 : { *(.debug_typenames) }  .debug_varnames  0 : { *(.debug_varnames) }  .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }  .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }  /DISCARD/ : { *(.note.GNU-stack) }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -