This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
MIPS gas .equ question
- From: Jeff Baker <jbaker at qnx dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 01 Mar 2004 16:39:14 -0500
- Subject: MIPS gas .equ question
- Organization: QNX Software Systems Ltd.
- Reply-to: jbaker at qnx dot com
When I assemble the following code for MIPS I get the subsequent error
message from gas (vintage 2.12.1).
----------------------------------
.data
actives: .word 0
ker_stack: .word 0
.equ distance,(ker_stack-actives)
testloc: .word distance
.text
li $4,distance
----------------------------------
main.s: Assembler messages:
main.s:10: Error: absolute expression required `li'
cc: C:/QNX630/host/win32/x86/usr/bin/ntomips-as caught signal 1
Is this an assembler bug or a valid error?