This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
MIPS assembly error
- From: Jeff Baker <jbaker at qnx dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 13 Jul 2004 16:00:51 -0400
- Subject: MIPS assembly error
- Organization: QNX Software Systems Ltd.
- Reply-to: jbaker at qnx dot com
I posted this question a while ago and didn't receive a response from
the list, so I'll try again.
Assemble the following code for MIPS (binutils 2.15.91):
===================================
.data
actives: .word 0
ker_stack: .word 0
.equ distance,(ker_stack-actives)
testloc: .word distance
.text
li $4,distance
===================================
And you get:
main.s: Assembler messages:
main.s:10: Error: absolute expression required `li'
Is this a bug in gas?