[comp.unix.ultrix] "as" question

stone@mckinley.cs.unc.edu (Donald Stone) (06/18/91)

I'm new to the ultrix community and I can't find an assembler manual.

The following program (test.s)

	.data
	one: 	.word 0
	     	.word 1
	two: 	.word three-one
	     	.word 3
	three:  .word 4

when run through "as"

	as -o test.o test.s

generates the following error message

	as0: Error: test.s, line 5: Symbol must have absolute value: one
	     two:  .word three-one

What's going on here?  Most assemblers support subtracting two labels to get
the relative length between them.  Is there any way to get this value?  Or am
I missing something?

Thanks much, 
Don Stone (stone@cs.unc.edu)