This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Your GAS change caused a testsuite regression for cris-elf


On Mon, Sep 26, 2005 at 02:54:39PM +0200, Jan Beulich wrote:
> >>> Alan Modra <amodra@bigpond.net.au> 20.09.05 17:05:23 >>>
> >	* read.c (pseudo_set): Don't set undefined symbols to
> expr_section.
> 
> I don't think this is correct, as it leads to failure recognizing the
> redefinition of x in
> 
> 	.equiv	x, y
> 	.equiv	x, 1
> 
> or, even less logical (because x by the time it gets redefined is fully
> resolvable),
> 
> 	.equiv	x, y
> 	.equiv	y, 1
> 	.equiv	x, 1
> 
> The problem observed by Hans-Peter probably needs to be fixed in a.out
> and/or stabs related code.

Given an undefined "y", ".equiv x,y" results in an "x" that is also in
some sense undefined.  I don't want to break places in gas that use a
simple test of the section to see whether a symbol is defined or not.
Fixing a longstanding bug with .equiv by changing the symbol section
will probably break more than just the aout stabs code.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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