This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Changes to gas/write.c and others break the ia32 assembler
On Aug 23, 2000, Alexandre Oliva <aoliva@redhat.com> wrote:
>> -#if defined (OBJ_ELF) || defined (OBJ_COFF) || defined (TE_PE)
>> +#if (defined (OBJ_MAYBE_ELF) || defined (OBJ_ELF) || defined (OBJ_COFF)) && !defined (TE_PE)
FYI, I'm checking this in, under the ``obviously correct'' rule, to
get us closer to the original behavior.
Index: gas/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
environment is pe.
Index: gas/config/tc-i386.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.h,v
retrieving revision 1.13
diff -u -p -r1.13 tc-i386.h
--- gas/config/tc-i386.h 2000/08/22 04:52:40 1.13
+++ gas/config/tc-i386.h 2000/08/23 11:16:33
@@ -41,7 +41,7 @@ struct fix;
#define tc_fix_adjustable(X) tc_i386_fix_adjustable(X)
extern int tc_i386_fix_adjustable PARAMS ((struct fix *));
-#if defined (OBJ_ELF) || defined (OBJ_COFF) || defined (TE_PE)
+#if (defined (OBJ_ELF) || defined (OBJ_COFF)) && !defined (TE_PE)
/* This arranges for gas/write.c to not apply a relocation if
tc_fix_adjustable() says it is not adjustable. */
#define TC_FIX_ADJUSTABLE(fixP) tc_fix_adjustable (fixP)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me