This is the mail archive of the
mailing list for the Cygwin project.
RE: Object File format
- From: "Ray Campbell" <raycampbell at rcn dot com>
- To: "egor duda" <cygwin at cygwin dot com>
- Date: Thu, 13 Dec 2001 14:16:29 -0500
- Subject: RE: Object File format
Thank you very much for your information. I am surprised you answered so
quickly ( and most grateful as well). Hope to contribute something of use
in the future and keep up the good work. I really love cygwin. I am a c++
programmer by trade, but unemployed due to the WTC disaster. Thanks again,
and have a very good holiday season.
From: egor duda [mailto:email@example.com]
Sent: Thursday, December 13, 2001 1:19 PM
To: Ray Campbell
Subject: Re: Object File format
Thursday, 13 December, 2001 Ray Campbell firstname.lastname@example.org wrote:
RC> I am trying to learn more about compiler development, and thus more
RC> information about ELF files. I thought that c++ object files were in
RC> ELF format, generated in cygwin with the c++ compiler, but when I try to
RC> read them, either with readelf, or in debug, they don't appear to be.
RC> there anyway I can generate these files in elf format? Or am I just
RC> something wrong? Thank you in advance for your time.
the format of files generated by gcc depends on platform. it's ELF for
linux/freebsd/a bunch of other unices, COFF for windows, etc. windows
can't run ELF binaries, and gcc provided with cygwin is intended to
produce windows executables. if you want to build ELF executables for,
say, linux, you should build gcc as cross-compiler.
I'd suggest an excellent book "Linkers and loaders" by John Levine
(you can download a draft from http://www.iecc.com/linker/) -- it
describes in great detail how all those things work.
a good introduction to cross-compilation stuff can be found at
Egor. mailto:email@example.com ICQ 5165414 FidoNet 2:5020/496.19
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html