TQ210 —— s5pv210u-boot.lds分析
2016-09-16 00:50
375 查看
/* * (C) Copyright 2002 * Gary Jennejohn, DENX Software Engineering, <gj@denx.de> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ // u-boot.lds决定了u-boot可执行映像的连接方式,以及各个段的装载地址(装载域)和执行地址(运行域)。 // 这个文件指定了各个文件链接后的先后排序。 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") /*OUTPUT_FORMAT("elf32-arm", "elf32-arm", "elf32-arm")*/ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { /* 指定可执行image文件的全局入口点,通常这个地址都放在ROM(flash)0x0位置。 必须使编译器知道这个地址,通常都是修改此处来完成 */ . = 0x00000000; /* .表示当前,当前地址是0,但这不是_start地址,会被TETX_BASE替代 */ /* 代码段基地址,board\samsung\TQ210\config.mk中定义,TEXT_BASE=0x23e00000 无论这里是什么都会被TEXT_BASE替代,所以这里的这个地址是不起作用的 */ . = ALIGN(4); /* 4字节对齐 */ .text : @ 指定代码段 { @ 执行顺序,start.S先运行 cpu/s5pv210/start.o (.text) cpu/s5pv210/s5pv210/cpu_init.o (.text) board/samsung/TQ210/lowlevel_init.o (.text) /* cpu/s5pc11x/onenand_cp.o (.text) */ cpu/s5pv210/nand_cp.o (.text) cpu/s5pv210/movi.o (.text) /*common/secure_boot.o (.text)*/ common/ace_sha1.o (.text) cpu/s5pv210/pmic.o (.text) * (.text) @ 其它代码部分 } . = ALIGN(4); .rodata : { *(.rodata) } @ 指定只读数据段 . = ALIGN(4); .data : { *(.data) } @ 指定读写数据段 . = ALIGN(4); .got : { *(.got) } @ 指定got段,got段式是uboot自定义的一个段,非标准段 __u_boot_cmd_start = .; @ u_boot命令段起始 .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; @ u_boot命令段结束 . = ALIGN(4); .mmudata : { *(.mmudata) } @ mmu数据 . = ALIGN(4); __bss_start = .; @ bss段起始 .bss : { *(.bss) } _end = .; @ bss段结束 }
相关文章推荐
- TQ210 —— s5pv210 board.c分析(uboot第二阶段)
- TQ210——S5PV210 uboot顶层mkconfig分析
- TQ210 —— s5pv210 start.S分析
- TQ210 —— s5pv210 cmd_board.c分析
- S5PV210(TQ210)U-BOOT第一阶段
- TQ210 —— s5pv210 lowlevel_init.S分析(uboot第一阶段)
- TQ210——S5PV210 uboot顶层mkconfig分析
- TQ210——S5PV210 uboot顶层config.mk分析
- s5pv210 uboot-2012-10移植(一) 之分析Alex Ling的linaro-2011.10 for mini210
- s5pv210 uboot-2012-10移植(一) 之分析Alex Ling的linaro-2011.10 for mini210
- TQ210 —— s5pv210 mem_setup.S分析
- U-Boot的LDS文件分析
- U-Boot之四:u-boot.lds分析
- 关于uboot.lds文件的分析
- 对u-boot.lds的更详细的分析
- uboot-2011.12移植到S3C2440(序四)—— uboot.lds分析与解析
- u-boot 连接脚本文件u-boot.lds的分析
- u-boot_smdkv210 分析四:启动代码汇编部分总结
- Uboot之二 ~~~ Uboot.lds的分析