Adding elf support to an coff target

Hans-Peter Nilsson hp@bitrange.com
Fri Jun 13 23:33:00 GMT 2003


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



More information about the Binutils mailing list