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
-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.