Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

COFF to ELF?

Posted on 2001-06-21
6
Medium Priority
?
1,539 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6213460
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
ID: 6213548
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
ID: 6214296
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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 22

Expert Comment

by:CJ_S
ID: 6230476
Any update?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7466833

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
ID: 7506185
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans

688 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