tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Niels Elgaard Larsen <elgaard () diku ! dk>
To: tru64-unix-managers
Subject: alpha assembler
Date: Fri, 01 Dec 1995 13:59:27 +0000	[thread overview]
Message-ID: <96075325906441.tru64-unix-managers.marc@archive.invalid> (raw)


In OSF3.2, when i assemble the following:
	.data
	l1:
	.long 0x42
	l2:
	.long 0x43
	.long l2-l1

I get:
as0: Error: td.s, line 6: Symbol must have absolute value: l1
     .long l2-l1

The Assembly Language Programmers Guide
2.7.4 says about expressions:



  7   If  the  operator    is  a minus    sign   (-)  and   the  first
          operand    refers   to  a relocatable     text-section,      data-
          section,    or  bss-section     symbol,    type   propagation      rules
          can  vary:
[snip]
          -   The   second    operand    can  have   the  same   type   as
               the  first   operand    and  the  result   is  absolute.

Why doesn't it work?

                 reply	other threads:[~1995-12-01 13:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox