This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Adding elf support to an coff target
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: "Svein E. Seldal" <Svein dot Seldal at solidas dot com>
- Cc: Binutils List <binutils at sources dot redhat dot com>
- Date: Fri, 13 Jun 2003 19:33:27 -0400 (EDT)
- Subject: Re: Adding elf support to an coff target
On Sat, 14 Jun 2003, Svein E. Seldal wrote:
> The tic4x target supports only coff as of this day. But I'm wishing for
> elf support (to get weak symbols and such).
>
> Can I have both coff and elf support at the same time in the compiled
> binutils binaries?
Yes, *including the assembler* if you wish so.
> Or do I have to specify them as two entirely
> different targets?
No, but let me suggest you add separate targets where the
default output differs.
> What do I have to do to get elf support in this target?
Write it, reusing lots of code from existing targets for the
supposed elf32-tic4x.c. Unfortunately much of the ELF code
isn't parametrized. Lots is, and lots isn't.
brgds, H-P