"Error: constant too large" on mips gas

Atsushi Nemoto anemo@mba.ocn.ne.jp
Mon Apr 18 06:25:00 GMT 2005


>>>>> On Fri, 15 Apr 2005 10:12:13 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> said:
anemo> Thanks, I have no problem with this.

No, I still have a problem ...

$ cat foo.s
	li	$8, 0x80000010
$ mips64-linux-as -64 foo.s
foo.s: Assembler messages:
foo.s:1: Error: Number (0x080000010) larger than 32 bits

Isn't this acceptable?  This code comes from linux-mips kernel.

In arch/mips/kernel/entry.S:
	li	t0, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
Where:
#define TIF_SYSCALL_TRACE	31	/* syscall trace active */
#define _TIF_POLLING_NRFLAG	(1<<TIF_POLLING_NRFLAG)

Should we modify the kernel code?

Thank you.
---
Atsushi Nemoto



More information about the Binutils mailing list