ELF freebsd support put into elf32-i386.c?

Alan Modra amodra@bigpond.net.au
Tue Jan 21 01:23:00 GMT 2003


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



More information about the Binutils mailing list