Chinaunix首页 | 论坛 | 博客
  • 博客访问: 177677
  • 博文数量: 42
  • 博客积分: 2185
  • 博客等级: 大尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-11 21:32
文章分类

全部博文(42)

文章存档

2012年(5)

2011年(13)

2010年(6)

2009年(18)

我的朋友

分类: LINUX

2009-07-10 19:01:29

Restore elf image from a u-boot image

 

Assume your u-boot image is something like cuImage.bamboo, the architecture is PowerPC, and it’s not a u-boot multi-image (which is a bit more complex to restore); and we could restore the symbols in the following step:

 

dd if=cuImage.bamboo of=zImage bs=64 skip=1

gzip –dc zImage > Image

powerpc-unknown-linux-gnu-objcopy -v -I binary -O elf32-powerpc -B PowerPC --rename-section .data=.text --readonly-text Image Image.elf

 

You could then use objdump to check the generated Image.elf:

 

powerpc-unknown-linux-gnu-objdump –D Image.elf

 


阅读(1317) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~