COFF 文件转 ELF 文件 - 软件 - 电子技术论坛 - 最好最受欢迎电子论坛!

COFF 文件转 ELF 文件

芒果冰 ( 楼主 ) 2014-10-15 16:18:59  只看该作者 倒序浏览

分享网盘下载地址:http://pan.baidu.com/s/1c0vlWuG

README.TXT $Revision: 1.9 $

COFF2ELF
========


Overview

--------

The coff2elf utility converts (PE)COFF files to ELF.  The utility will also convert any debugging information to DWARF2.  As the ARM ADS debuggers require the use of ELF/DWARF2 files this provides a means of using these debuggers with PECOFF/STABS files that are generated by various other compilation tools (e.g. certain versions of GCC).


Supported Formats
-----------------
The Common Object File Format (COFF) varies slightly between various
implementations.   The coff2elf utility provides conversion for the
following formats:


1. PECOFF/STABS


   The STABS debugging information is used to generate DWARF2 debugging
   information.


2. TI COFF.


   The debugging information in the COFF symbol table is used to generate
   DWARF2 debugging information.


The (PE)COFF files to be converted must be fully linked files with no
relocation entries.


Using coff2elf
--------------
The coff2elf utility is simple to use.   In order to convert a file all
that is necessary is to specify the output and input files names, e.g.


        coff2elf -output outfile.elf infile.coff


The coff2elf utility can also be used to produce a textual dump of the
COFF symbol table, line number table, relocation table and string
table.  This is useful if it is necessary to compare the information
in the original COFF file with that produced in the output ELF file.


Command Line Options
--------------------


Conversion options:


-elf            Specifies that the output format is ELF (the default).
-output   Specifies the name of the output file.
-nodebug        Prevents the generation of DWARF2 sections in the output image.
-noinline       Prevents the generation of line numbers for inlined code.
-nozero         Prevents the output of sections which are zero bytes long.
-codeonly       Only code areas to be marked for loading in the output image.
-dosdrive       Rewrite pathname with a DOS drive letter
-producer string        Specify the contents of the DWARF2 producer string.
-producerfile filename  Read the DWARF2 producer string from the file.


Text options:
-text           Specifies that the output format is text.
-d              Print the contents of the data sections.
-l              Print the line number tables.
-r              Print the relocation tables.
-s              Print the COFF symbol table.
-t              Print the COFF string table.



0个回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则


关闭

站长推荐上一条 /6 下一条

小黑屋|手机版|Archiver|电子发烧友 ( 湘ICP备2023018690号 )

GMT+8, 2024-11-26 02:57 , Processed in 0.371157 second(s), Total 39, Slave 27 queries .

Powered by 电子发烧友网

© 2015 bbs.elecfans.com

微信扫描
快速回复 返回顶部 返回列表