OK6410A 开发板 (三) 6 u-boot-2021.01 boot 解析 SPL与u-boot 编译链接部分的不同

  • include/generated/asm-offsets.h 和 include/generated/generic-asm-offsets.h 的生成(以include/generated/asm-offsets.h为例)
SPL多
-Ispl/include
-Ispl/. 
-DCONFIG_SPL_BUILD
-ffunction-sections
-fdata-sections

U-boot多
-mword-relocations 
-fno-pic 

  • arch/arm/cpu/arm1176/start.S
SPL 多
-Ispl/include
-DCONFIG_SPL_BUILD

U-boot  多
-mword-relocations
-fno-pic 
  • 链接脚本的生成
SPL 多
-Ispl/include
-DCONFIG_SPL_BUILD
-include ./include/config.h
-DIMAGE_TEXT_BASE=0x0C000000
../board/samsung/ok6410a/u-boot-spl.lds // 源文件

U-boot多
-mword-relocations  
-fno-pic 
../board/samsung/ok6410a/u-boot.lds  // 源文件
  • 链接
SPL多
-T u-boot-spl.lds
-Ttext 0x0C000000

U-boot多
-T u-boot.lds 
-pie 

猜你喜欢

转载自blog.csdn.net/u011011827/article/details/115027666