This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ELF freebsd support put into elf32-i386.c?
On Tue, Jan 21, 2003 at 01:04:28AM +0100, Fabio Alemagna wrote:
> You say I should go for copy'n'paste? :)
No. Try to avoid duplicating code. Put your bfd_target in
elf32-i386.c, and target specific code in another file when/if it
grows large. I imagine that most of the x86 functions will not need
changing for your target.
> I wonder why the old method has
> been removed? It was nicer.
It was removed because multiple copies of elf32-i386.c code appeared
in an exe when multiple x86 targets were selected.
--
Alan Modra
IBM OzLabs - Linux Technology Centre