📄 ldscript_iram_gnu.ld
字号:
/*;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Project: SDK7A404 startup code linker file for GNU toolset ; ; Description: ; This file implements linker script for the LogicPD SDK7A404 EVB ; when used with the SDK7A404 startup code. ; ; Notes: ; This linker script links the image to start at address ; 0xB0000000 in internal memory. This is convienent for testing ; a bootable image before flashing it, but has a size limit of ; 80Kbytes. ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION ; OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE, ; AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES, ; SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE. ; ; SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY ; FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A ; SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE ; FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS. ; ; COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC. ; CAMAS, WA ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;*//* Define the supported output formats - elf32-littlearm is the default */OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")/* Define the target architecture */OUTPUT_ARCH(arm)/* Define the system entry point */ENTRY(arm922t_reset)/* Define the memory layout for the board */SECTIONS{ /* Set up the location counter */ . = 0xB0000000; /* Define a execution region that resides at ram base */ .text : { /* Start of .text segment */ PROVIDE (__gnu_textstart = .); sdk7a404_startup_entry.o *(.text) } /* Define a readonly data section in flash that resides at the end of the .rom execution region */ .rodata : { /* Place all .rodata regions in this section. */ *(.rodata); } /* (Real) End of .text segment */ PROVIDE (__gnu_textend = .); /* Define a read/write section at the end of the .text section */ .data : { /* Start of .data segment */ PROVIDE (__gnu_datastart = .); *(.data); /* End of .data segment */ PROVIDE (__gnu_dataend = .); } /* Define a ZI section at the end of the .data section */ .bss : { /* Start of .bss segment */ PROVIDE (__gnu_bssstart = .); *(.bss) *(COMMON); /* End of .bss segment */ PROVIDE (__gnu_bssend = .); } /* Define linker variable to reference end address of this section - required by gcc */ PROVIDE (end = .); PROVIDE (__end = .); /* 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) } .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) }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -