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

📄 loader.lds

📁 Hermit-at-1.1.3,一款bootloader
💻 LDS
字号:
/* * loader.lds -- hermit linker script * *  Copyright (C) 2004-2005  Atmark Techno, Inc. * * This file is subject to the terms and conditions of the GNU General * Public License.  See the file COPYING in the main directory of this * archive for more details. * * Written by Yasushi SHOJI <yashi@atmark-techno.com> */#include "memregions.h"ENTRY(_start)MEMORY{	FLASH	: ORIGIN = FLASH_BASEADDR, LENGTH = FLASH_SIZE	DRAM	: ORIGIN = DRAM_BASEADDR,  LENGTH = DRAM_SIZE}SECTIONS{	. = START_ADDRESS ;	.text BLOCK(32):	{		__text_start = ABSOLUTE(.);		*(.boot)		/* must come first */		*(.hermit.version)		*(.text)		/* program text (code) */		*(.text.*)		/* annotated text sections */		*(.stub)		*(.gnu.warning)		*(.gnu.linkonce.t*)		*(.glue_7t)		*(.glue_7)		*(.rodata)		/* read-only data */		*(.rodata.*)		/* read-only data */		*(.gnu.linkonce.r*)		*(.rodata1)		/* read-only data */		*(.sdata2)		*(.eh_frame)		*(.gcc_except_table)		*(.got)			/* global offset table */		*(.dynamic)		*(.sdata)		*(.sdata.*)		*(.gnu.linkonce.s.*)		*(.got.plt)		__text_end = ABSOLUTE(.);	} >DRAM =0	/* .data: initialized data */	.data BLOCK(32):	{		__data_start = ABSOLUTE(.);		*(.data)		/* initialized writeable data */		*(.data.*)		/* initialized writeable data */		*(.gnu.linkonce.d*)		*(.data1)		__data_end = ABSOLUTE(.);	} >DRAM =0	/* .bss: uninitialized data (must be zeroed) */	.bss BLOCK(32):	{		__bss_start = ABSOLUTE(.);		*(.sbss)		*(.dynsbss)		*(.sbss.*)		*(.sbss2)		*(.scommon)		*(.bss)			/* uninitialized data (zeroed) */		*(.dynbss)		*(.bss.*)		/* uninitialized data (zeroed) */		*(COMMON)		__bss_end = ABSOLUTE(.);	} >DRAM	/* .unused: stuff we don't want in the loader */	.unused 0:	{		*(.ctors)		/* constructors */		*(.dtors)		/* destructors */		*(.init)		/* initialization code */		*(.fini)		/* termination code */		*(.note.ABI-tag)		*(.interp)		/* path name of program interpreter */		*(.hash)		/* symbol hash table */		*(.dynsym)		/* dynamic linking symbol table */		*(.dynstr)		*(.gnu.version)		*(.gnu.version_d)		*(.gnu.version_r)		*(.plt)			/* procedure linkage table */		*(.rel.init)		/* relocation information... */		*(.rela.init)		*(.rel.text)		*(.rela.text)		*(.rel.fini)		*(.rela.fini)		*(.rel.rodata)		*(.rela.rodata)		*(.rel.data)		*(.rela.data)		*(.rel.ctors)		*(.rela.ctors)		*(.rel.dtors)		*(.rela.dtors)		*(.rel.got)		*(.rela.got)		*(.rel.sdata)		*(.rela.sdata)		*(.rel.sbss)		*(.rela.sbss)		*(.rel.sdata2)		*(.rela.sdata2)		*(.rel.sbss2)		*(.rela.sbss2)		*(.rel.bss)		*(.rela.bss)		*(.rel.plt)		*(.rela.plt)		*(.stab)		/* symbol table (debugging)... */		*(.stabstr)		*(.stab.excl)		*(.stab.exclstr)		*(.stab.index)		*(.stab.indexstr)	}}

⌨️ 快捷键说明

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