bootloader相互交流
源代码在线查看: start-ld-script
/*------------------------------------------------------------------------- * Filename: ld-script * Version: $Id: start-ld-script,v 1.1 2001/10/07 15:51:01 erikm Exp $ * Copyright: Copyright (C) 1999, Erik Mouw * Author: Erik Mouw * Description: ld (linker) script to make the blob bootlader. * Heavily inspired by the Linux kernel linker scripts. * Created at: Tue Aug 24 17:24:06 1999 * Modified by: Erik Mouw * Modified at: Sun Aug 29 14:45:54 1999 *-----------------------------------------------------------------------*/ /*OUTPUT_FORMAT("elf32-arm", "elf32-arm", "elf32-arm")*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { . = 0x00000000; . = ALIGN(4); .text : { *(.text) } . = ALIGN(4); .rodata : { *(.rodata) } . = ALIGN(4); .data : { *(.data) } . = ALIGN(4); .got : { *(.got) } . = ALIGN(4); .bss : { *(.bss) } }