Solved

COFF to ELF?

Posted on 2001-06-21
6
1,470 Views
Last Modified: 2012-05-04
Hi

Does anyone know of a small utility that I can downlaod that will convert between COFF and ELF object file formats? If so could you please point me there?

Basically I want to convert COFF files output by Microsoft's embedded visual studio to work with GCC's ARM linker

Thanks

Mat
0
Comment
Question by:matth012098
6 Comments
 
LVL 19

Expert Comment

by:DreamMaster
Comment Utility
You could try using the objcopy program....

But as far as I know it only changes the headers to ELF format....I haven't been able to find any other programs that can convert that way...while there are several that will go the other way...

For more information on objcopy check here:

http://www.delorie.com/gnu/docs/binutils/objcopy.1.html

http://nodevice.com/sections/ManIndex/man1001.html

objcopy is part of the BinUtils package...

Cheers,
Max.
0
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
No such product exists, as the task cannot generally be done.

The kernel uses the COFF vs ELF distinction to decide what the
size of certain fundimental types are, and what some structures are.
The code has been compiled assuming the old sizes. Any convertor would,
at a minimum, have to intercept every library call and convert sizes
and re-order structure elements. Doing that for possibly dynamically
generated code is difficult.

Even common objects such as UIDs are different sizes between COFF and ELF.

Regards,
CJ
0
 
LVL 4

Expert Comment

by:prashant_n_mhatre
Comment Utility
Although "Objcopy" utility claims to be able to convert  ELF and COFF to any other format it knows about, It may not always work perfectly.

But I remember I read about "D-DUMP File Dumper" on Mathworks site (in MatriXx documentation)- they have 'ddump' command which does something similar.

Download this file for more info:
 
http://www.mathworks.com/support/matrixx/knowbase/OnLineDocs/SUPPORT/PDF/DIAB/PPC/UTIL.pdf


0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
Any update?
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now