From: hjl@lucon.org (H.J. Lu)
To: rth@cygnus.com
Cc: gas2@cygnus.com
Subject: Re: An alpha/gas bug
Date: Sat, 24 Jan 1998 16:47:00 -0000 [thread overview]
Message-ID: <m0xwGEL-0004ecC@ocean.lucon.org> (raw)
In-Reply-To: <19971106121644.39437@dot.cygnus.com>
>
> > From what I see, binutils 2.8.1 and binutils gas-971031 treat
> >
> > lda $0,_t12basic_string2ZcZt18string_char_traits1Zc$nilRep+32
> >
> > differently. binutils 2.8.1 generates
> >
> > ldq v0,0(gp)
> > lda v0,32(v0)
> >
> > and gas-971031 generates
> >
> > ldq v0,0(gp)
> >
> > I think that is a bug in gas.
>
> Nope. If you'll notice, gas-971031 generates
>
> 4c: ELF_LITERAL _t12basic_string2ZcZt18string_char_traits1Zc$nilRep+0x20
> ^^^^^
>
> Now, the problem may be in either ld or ld.so in their handling of
> dynamic relocations. I'll check on it later, as I'm a bit busy right now.
>
Hi,
As of gas 980114, I and other people have verified that the patch
below is needed for Linux/Alpha to pass "make check" for egcs with
libg++ as well as build a working glibc 2. I intend to include it
in the next binutils for Linux.
Thanks.
H.J.
----
Wed Jan 21 17:10:34 1998 H.J. Lu (hjl@gnu.org)
* config/tc-alpha.c (load_expression): Undo the change of
Wed Oct 8 16:28:53 1997 Richard Henderson <rth@cygnus.com>.
Index: config/tc-alpha.c
===================================================================
RCS file: /home/work/cvs/gnu/binutils/gas/config/tc-alpha.c,v
retrieving revision 1.10
diff -u -r1.10 tc-alpha.c
--- tc-alpha.c 1998/01/15 17:52:30 1.10
+++ tc-alpha.c 1998/01/22 01:08:07
@@ -2256,7 +2256,11 @@
/* XXX: Disable this .got minimizing optimization so that we can get
better instruction offset knowledge in the compiler. This happens
very infrequently anyway. */
+ /* FIXME: Enable it again. Otherwise, it won't work on
+ Linux/Alpha.
if (1 || !range_signed_32 (addend)
+ */
+ if (!range_signed_32 (addend)
&& (alpha_noat_on || targreg == AXP_REG_AT))
{
newtok[1] = *exp;
next parent reply other threads:[~1998-01-24 16:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <19971106121644.39437@dot.cygnus.com>
1998-01-24 16:47 ` H.J. Lu [this message]
1997-11-06 11:54 H.J. Lu
1997-11-10 13:25 ` Ken Raeburn
1997-11-10 13:25 ` Richard Henderson
1997-11-10 13:31 ` H.J. Lu
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=m0xwGEL-0004ecC@ocean.lucon.org \
--to=hjl@lucon.org \
--cc=gas2@cygnus.com \
--cc=rth@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).