开发者

objdump ELF and Windows

I am fairly new to this subject, that is ELF and any Linux related stuff. I 开发者_如何学JAVAam trying to write an ELF file and would prefer to do it on WinXP.

My question is, can this be done with MS Visual Studio including the compilation? As far as my understanding goes, ELF files can not be compiled on Windows OSs. Well, at least that's what my Google research discovered to me. Do I have to setup a Linux OS and compile it there?

Can I use the objdumo (part of GNU binutils) to analyze any ELF file on WindowsXP?

Any help and links are very appreciated.


It may be possible to use the Visual Studio IDE with other tools invoked from custom build steps. However, I would not recommend doing it to compile binaries for other platforms that are not Microsoft based.

You could install Cygwin (with gcc/g++) to compile ELF binaries and configure Eclipse to use them. You might find some tips on how to do this on this thread.


Please look at ELFIO library. It contains WriteObj and Writer examples. By using the library, you will be able to create ELF binary files on Windows and run them on other OSes that are able to operate it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜