This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MIPS gas .equ question


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]