objcopy
copy and translate object files:- 複製 .o 檔 (obj file) 的內部內容到另一個檔案中 (.o 檔或是單純地做 hex dump)
- 將一個 binary data (如JPEG 圖片) 做成 .o 檔
- 把執行碼從 ELF 中抽取出來
- 只抽取指定的 section
常用參數
objcopy [`-I' bfdname|`--input-target='bfdname]
[`-O' bfdname|`--output-target='bfdname]
[`-B' bfdarch|`--binary-architecture='bfdarch]
[`-S'|`--strip-all']
[`-g'|`--strip-debug']
[`-j' sectionname|`--only-section='sectionname]
[`-R' sectionname|`--remove-section='sectionname]
[`--help']
infile [outfile]
GNU binutil manual
==============================================
Ex:
splash.o:
$(OBJCOPY) -I binary -O elf32-littlearm -B arm initlogo.rle $@
沒有留言:
張貼留言