extending elf32-i386 BFD backend

Alan Modra amodra@bigpond.net.au
Wed Apr 3 20:13:00 GMT 2002


On Thu, Mar 28, 2002 at 02:50:00PM -0500, Graeme Peterson wrote:
> I did this by moving all but the last line of elf32-i386.c
> into a new file elf32-i386.h, which is then included at the
> top of both elf32-i386.c, and elf32-i386qnx.c.

I know we do that elsewhere in BFD, but I hate it due to problems
with debuggers.  eg. with gdb-4.18 and gcc-2.95 I have trouble
putting breakpoints on anything within elflink.h, even after
allowing for name changes due to #defines.

Can you instead make elf32-i386.c support two targets, as
elf32-hppa.c does?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list