emulation on i386-coff, i386-elf patches

Ian Lance Taylor ian@cygnus.com
Wed Jan 8 10:50:00 GMT 1997


   Date: Wed, 8 Jan 1997 12:00:26 -0600 (CST)
   From: Robert Lipe <robertl@dgii.com>

   However, the COFF version has a problem that isn't obvious to me.  Here
   is a disassembly of the same .s file generated with the native COFF=20
   assembler and with this assembler in COFF  mode.

It looks to me like you need to hack md_apply_fix3 in tc-i386.c.  In
general, anything that does an #ifdef OBJ_ELF or #ifdef OBJ_COFF will
have to be hacked.

In fact, I'm not certain that the BFD_ASSEMBLER version of the i386
COFF assembler works correctly.  You need to make sure that if you
configure with --target i386-coff --enable-bfd-assembler the resulting
code works.

By the way, for some reason your patch came in scrambled, with lots of
=20 strings scattered around.  I can never remember how to get rid of
those.

Ian




More information about the Gas2 mailing list