This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Separate debug info in gold, ld and objcopy
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, Vladimir Simonov <sv at sw dot ru>
- Date: Tue, 14 Apr 2009 11:26:37 +0100
- Subject: Re: Separate debug info in gold, ld and objcopy
- References: <49E33C23.6060205@sw.ru> <m3ab6k9x2g.fsf@google.com> <49E3C72E.9020209@gmail.com>
On Tuesday 14 April 2009, Dave Korn wrote:
> Ian Lance Taylor wrote:
> > Vladimir Simonov <sv@sw.ru> writes:
> >> Do you have any plans in this direction?
> >
> > I don't personally have any plans in this direction at present, but I
> > completely agree that these would be useful features to have.
> >
> > Ian
>
> I haven't even looked at gold yet. I know it's ELF-centric, but is that
> assumption actually embedded in the code, or would adding coff/pe just be a
> simple matter of defining a new derived class for the output format?
If you really want to support non-elf targets you might consider using a
postlinker approach, like the ARM EABI does for SymbianOS. i.e. your
toolchain is ELF based, then you run the final image through a postprocessor
to generate your actual target binaries (PE/bFLT/whatever).
http://www.arm.com/products/DevTools/ABI.html
The "Base Platform ABI" document contains some hints on how windows-like DLL
based systems can be encapsulated in an ELF toolchain.
Paul