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

📄 cfe_ldscript.template

📁 一个很好的嵌入式linux平台下的bootloader
💻 TEMPLATE
字号:
/* * This is the "template" linker script.  It gets run through the C preprocessor * (via cpp) to construct the real linker script. *//* our toolchain defines 'mips'.  Undefine it so it doesn't get expanded */#undef mipsOUTPUT_ARCH(mips)ENTRY(vec_reset)SECTIONS{  . = CFE_TEXT_START;  .text : /*  * Neither RAMAPP (CFE as app) nor BOOTRAM (ROM area is writeable) implies * a boot ROM. */#if (!CFG_RAMAPP) && (!CFG_ZIPSTART) && !(CFG_BOOTRAM)   AT ( CFE_ROM_START )#endif   {     _ftext = . ;    *(.init)     eprol  =  .;    *(.text)/* * Embedded PIC mode provides an extra segment of goo for relocation tables. */#if CFG_EMBEDDED_PIC    PROVIDE (__runtime_reloc_start = .);    *(.rel.sdata)    PROVIDE (__runtime_reloc_stop = .);#endif    *(.fini)    *(.rodata)    *(.rodata.*)     _etext  =  .;   }/* * If ROM, locate a copy of the data segment in the ROM area.  Otherwise, * we are loading like a regular application so take data segment from * current value of "dot". */#if (!CFG_RAMAPP) && (!CFG_ZIPSTART) && (!CFG_BOOTRAM)  .data CFE_DATA_START :    AT ( (LOADADDR(.text) + SIZEOF ( .text ) + 15) & 0xFFFFFFF0)#else  .data :#endif  {    _gp = ALIGN(16) + 0x7FF0;     _fdata = .;    *(.rdata)    *(.data)    CONSTRUCTORS    *(.sdata)  }   . = ALIGN(16);   _edata  =  .;   _fbss = .;  .sbss : {    *(.sbss)    *(.scommon)  }  .bss : {    *(.bss)    *(COMMON)  }  . = ALIGN(16);   _end = .;}

⌨️ 快捷键说明

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