2008年5月19日 星期一

objcopy-jpg2ascii 搭配 objcopy 的展示

REF:jpg2ascii 搭配 objcopy 的展示
很有趣的展示。實作利用原始圖檔,然後 objcopy 可產生不折不扣的 ELF relocatable object,然後進一步作 linking 的動作。
=============================================================
The GNU objcopy utility copies the contents of an object file to another. objcopy uses the GNU BFD Library to read and write the object files. It can write the destination object file in a format different from that of the source object file. The exact behavior of objcopy is controlled by command-line options. Note that objcopy should be able to copy a fully linked file between any two formats. However, copying a relocatable object file between any two formats may not work as expected.

objcopy creates temporary files to do its translations and deletes them afterward. objcopy uses BFD to do all its translation work; it has access to all the formats described in BFD and thus is able to recognize most formats without being told explicitly.

沒有留言: