This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: [patch] fix for offset operands in i386 intel syntax


On Fri, 15 Dec 2000, Diego Novillo wrote:

> How do I configure GAS for all the different binary flavours
> (a.out, elf, etc).

I configure with  --target=i686-linux --enable-targets=i386-linuxaout,i386-coff
then "export AS_EMULATION=i386aout" before running the testsuite.  Ignore
the elf errors - the testsuite isn't sophisticated enough to know about
emulations.

> The patch also adds a new test to intel.s but
> I'm not sure if I need to pad with nops for a.out.

You will need to, as the file doesn't end on a 4 byte boundary.  Why not
fix it once and for all by adding
	.p2align	4,0
at the end of intel.s.  16 byte alignment is a bit excessive, but doesn't
hurt.

> 2000-12-15  Diego Novillo  <dnovillo@redhat.com>
> 
> 	* config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
> 	it's not an offset expression. 
> 	(intel_e10_1): Ditto. Also, if the operand is an offset expression,
> 	keep the braces '[' and ']' in the output string.
> 	(intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
> 	!= FLAT. There is no such op_modifier.
> 
> 2000-12-15  Diego Novillo  <dnovillo@redhat.com>
> 
> 	* testsuite/gas/i386/intel.[sd]: Add tests for offset expressions
> 	involving _GLOBAL_OFFSET_TABLE_.

OK.

-- 
Linuxcare.  Support for the Revolution.


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