* sign error in tc-mips.c for gas
@ 1996-04-18 21:20 Don Bowman
0 siblings, 0 replies; only message in thread
From: Don Bowman @ 1996-04-18 21:20 UTC (permalink / raw)
To: gas2; +Cc: bowman
This occurs in the assembler when doing any kernel work (ie
addresses have the high-bit set). This test file shows the error:
.text
.align 2
.globl usrBootLineInit
.ent usrBootLineInit
usrBootLineInit:
lw $2,0x80000000 # << error shows here
.end usrBootLineInit
The error is occuring for me on an HP-UX host with a target of mips-any-elf.
In particular,
if ((offset_expr.X_add_number) >= MAX_GPREL_OFFSET
in the function macro(), line 3579.
I am enclosing a diff in this email since it is only one line.
diff -C3 config/tc-mips.c@@/main/1 config/tc-mips.c
*** config/tc-mips.c@@/main/1 Fri Apr 5 12:43:08 1996
--- config/tc-mips.c Fri Apr 19 00:12:53 1996
***************
*** 3572,3578 ****
With a constant we always use the latter case. */
if (breg == 0)
{
! if (offset_expr.X_add_number >= MAX_GPREL_OFFSET
|| nopic_need_relax (offset_expr.X_add_symbol))
p = NULL;
else
--- 3572,3578 ----
With a constant we always use the latter case. */
if (breg == 0)
{
! if ((unsigned long )(offset_expr.X_add_number) >= MAX_GPREL_OFFSET
|| nopic_need_relax (offset_expr.X_add_symbol))
p = NULL;
else
--
Don Bowman ** bowman@waterloo.hp.com ** 519-883-3019
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-04-18 21:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-18 21:20 sign error in tc-mips.c for gas Don Bowman
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).