alpha assembler

From: Niels Elgaard Larsen <elgaard_at_diku.dk>
Date: Fri, 1 Dec 1995 14:59:27 +0100

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?
Received on Fri Dec 01 1995 - 16:04:29 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT