u-boot.lds为U-boot全局的链接脚本,u-boot.lds把所有*.o文件链接成镜像*.elf *.bin文件
/*
* (C) Copyright 2000-2004
* Wolfgang Denk, DENX Software Engineering, .
*
*/
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = 0; /当前地址从0开始
. = ALIGN(4);//以2^4方式填充对齐
.text : //text代码段RO
{
cpu/s3c44b0/start.o (.text)
*(.text)//其它所有代码2^4=16字节对齐依次向下放
}
. = ALIGN(4);
.rodata : { *(.rodata) }
. = ALIGN(4);
.data : { *(.data) }
. = ALIGN(4);
.got : { *(.got) }
__u_boot_cmd_start = .;
.u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .;
armboot_end_data = .;
. = ALIGN(4);
__bss_start = .;
.bss : { *(.bss) }
_end = .;
}
阅读(916) | 评论(0) | 转发(0) |