This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: emulation on i386-coff, i386-elf patches


Ian Lance Taylor <ian@cygnus.com> writes:

> 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.

You can check OUTPUT_FLAVOR at run time.  Accesses to flavour-specific
structure members and such can also be conditionalized at compile time
on OBJ_MAYBE_* macros like in the MIPS code.

> 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.

That's the first thing to check....

> 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.

In Gnus, turning on MIME processing gets rid of them for me.