public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* "Error: constant too large" on mips gas
@ 2005-04-01  3:35 Atsushi Nemoto
  2005-04-04  8:58 ` Atsushi Nemoto
  0 siblings, 1 reply; 23+ messages in thread
From: Atsushi Nemoto @ 2005-04-01  3:35 UTC (permalink / raw)
  To: binutils

With recent binutils (2.15.96 and 20050331 snapshot), mips-linux-as
does not accept this instruction.

	lw	$2, 0x80000000

$ mips-linux-as -32 -non_shared foo.s
foo.s: Assembler messages:
foo.s:1: Error: constant too large

I got same result without -32 or -non_shared option.

The error was generated here.

gas/config/tc-mips.c:5788:
      /* A constant expression in PIC code can be handled just as it
	 is in non PIC code.  */
      if (offset_expr.X_op == O_constant)
	{
	  if (HAVE_32BIT_ADDRESSES
	      && !IS_SEXT_32BIT_NUM (offset_expr.X_add_number))
	    as_bad (_("constant too large"));

It looks like an old 2.14 problem (which was fixed on 2.15).
Subject: [patch] MIPS/gas: load/store address overflow on binutils 2.14
http://sourceware.org/ml/binutils/2003-09/msg00104.html

Is this desired behavior?

---
Atsushi Nemoto
I'm not on this ML.  Please CC to me.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2005-04-18  8:53 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01  3:35 "Error: constant too large" on mips gas Atsushi Nemoto
2005-04-04  8:58 ` Atsushi Nemoto
2005-04-04 13:37   ` Maciej W. Rozycki
2005-04-04 13:40     ` Daniel Jacobowitz
2005-04-04 14:00       ` Maciej W. Rozycki
2005-04-04 18:10     ` Eric Christopher
2005-04-05 18:41       ` Maciej W. Rozycki
2005-04-05 18:41         ` Eric Christopher
2005-04-05 18:56         ` Daniel Jacobowitz
2005-04-09 15:31         ` Daniel Jacobowitz
2005-04-09 17:47           ` Eric Christopher
2005-04-11 18:23             ` Maciej W. Rozycki
2005-04-11 21:40               ` Eric Christopher
2005-04-12 18:07                 ` Maciej W. Rozycki
2005-04-12 18:25                   ` Eric Christopher
2005-04-13 17:55                     ` Maciej W. Rozycki
2005-04-15  1:12               ` Atsushi Nemoto
2005-04-17 12:22                 ` Atsushi Nemoto
2005-04-18  6:25                 ` Atsushi Nemoto
2005-04-18  8:53                   ` Atsushi Nemoto
2005-04-05  2:38     ` Atsushi Nemoto
2005-04-05  4:28       ` Atsushi Nemoto
2005-04-05  4:34         ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).