uboot入门学习二 位置无关代码以及地址

test_got(void)
fff87260:    stwu r1, -16(r1)
fff87264:    mflr r0
fff87268:    bcl- 20, 4*cr7+so, fff8726c
fff8726c:    stw r30, 8(r1)
fff87270:    mflr r30
fff87274:    addis r30, r30, 3
fff87278:    stw r0, 20(r1)
fff8727c:    addi r30, r30, 32496
... ...
fff87280:    lwz r9, -32768(r30)

其中 0xfff8726c + 0x30000 + 32496 - 32768 == 0xfffb4e34

查找got表
.got2 0x00000000fffb4e34    lib_common/lib_common.a(test.got.o)

位置无关码、位置有关码、链接地址、加载地址
https://blog.csdn.net/lizuobin2/article/details/52049892

powerpc uboot链接脚本大改造
https://blog.csdn.net/skyflying2012/article/details/48846833

MPC8560 uboot笔记
https://blog.csdn.net/evenness/article/details/7411356

P4080上电启动及uboot流程
http://www.360doc.com/content/15/0324/09/1671317_457581500.shtml

.section 后面跟着的“ax” 和%progbits是什么意思? .section .flashtext.Reset_Handler,"ax",%progbits
https://blog.csdn.net/wangbotao1990/article/details/86995910

uboot的relocation原理详细分析
https://blog.csdn.net/skyflying2012/article/details/37660265

linux源码entry_32.S中interrupt数组的分析
https://blog.csdn.net/jinhongzhou/article/details/6015551

7.2.3 映像的复杂性
http://book.51cto.com/art/200910/158760.htm

PowerPC non-DPAA 平台上的…
https://blog.csdn.net/woshigaoyuan/article/details/13996275

POWERPC-UBOOT  好文
http://www.pudn.com/Download/item/id/2456377.html

【嵌入式Linux学习七步曲之第三篇 Linux系统bootlaoder移植】 从反汇编来看U-boot在PPC架构下的PIC(位置无关程序)设计
https://blog.csdn.net/sailor_8318/article/details/4852691

U-Boot GOT表分析和u-boot.lds解读
https://www.cnblogs.com/julyatgalileo/p/5233428.html

Debugging PowerPC ELF Binaries    深度好文
http://devpit.org/wiki/Debugging_PowerPC_ELF_Binaries

动态链接库地址重定位
https://blog.csdn.net/imyangjianwei/article/details/84700705

Linux动态链接为什么要用PLT和GOT表?
https://www.zhihu.com/question/21249496/answer/20055825

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值