From: Don Bowman <bowman@waterloo.hp.com>
To: gas2@cygnus.com
Cc: bowman@waterloo.hp.com
Subject: sign error in tc-mips.c for gas
Date: Thu, 18 Apr 1996 21:20:00 -0000 [thread overview]
Message-ID: <199604190420.AA083807629@hppadap.waterloo.hp.com> (raw)
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
reply other threads:[~1996-04-18 21:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199604190420.AA083807629@hppadap.waterloo.hp.com \
--to=bowman@waterloo.hp.com \
--cc=gas2@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).