Common areas and as

Nick Burrett nick at dsvr.net
Mon Oct 27 01:30:46 PST 2003



David Marston wrote:
> Oh dear :( It seems 'as' isn't generating the right relocations for
> these now that we're using the area name:
> 
> Section of DecAOF output:
> 
> At 000214: Word [00000000] displaced by symbol main
> At 000210: Word [00000000] displaced by symbol test5
> 
> If I change the area definitions to something like
> 
> 	AREA |C$$x|, DATA, COMMON
> |x|
> 	EXPORT |x|
> 	
> then I get the right relocations:
> 
> At 000214: Word [00000000] displaced by base of area C$$y
> At 000210: Word [00000000] displaced by base of area C$$x

This is the way we used to have the AREA definitions.

Thanks for the analysis.  I get the impression that we aren't making 
symbol 'x' an member of area 'x'.  We probably aren't generating a 
relocation at all.

I'll dig a bit deeper this evening.


Nick.


-- 
Nick Burrett
Network Engineer, Designer Servers Ltd.   http://www.dsvr.co.uk





More information about the gcc mailing list