public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Re: i386 - GAS  problem (fwd)
@ 1998-03-20 10:32 Joel Sherrill
  1998-03-20 15:02 ` H.J. Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 1998-03-20 10:32 UTC (permalink / raw)
  To: gas2

One of the RTEMS users reported this.  I asked for a test cas and he
responded. 

--joel


---------- Forwarded message ----------
Date: Fri, 20 Mar 1998 15:38:16 -0500
From: "erik.ivanenko" <erik.ivanenko@utoronto.ca>
To: Joel Sherrill <joel@OARcorp.com>
Subject: Re: i386 - GAS  problem

Joel Sherrill wrote:

> Could you put together a small compilable file with this in it?  binutils
> 2.9 is getting closer and we don't want problems like this in there.

The following file shows that the ds register is ignored by the lidt and
lgdt instructions.This is also a problem with the GAS I have ( shipped with
gcc-2.7.2.1 , Linux Universe version ).
I suspect this has been there for a while. 

 .section .text
 .code16
   movw $0x1000, %ax
 movw    %ax, %ds

 lidt    %ds:0x1000
 lidt    0x1000

 lgdt    %ds:0x1000
 lgdt    0x1000

 .code32

 lidt    %ds:0x1000
 lidt    0x1000

 lgdt    %ds:0x1000
 lgdt    0x1000

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

end of thread, other threads:[~1998-03-21 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <ECS9803211657D@utoronto.ca>
1998-03-21 22:55 ` i386 - GAS problem (fwd) H.J. Lu
1998-03-20 10:32 Joel Sherrill
1998-03-20 15:02 ` H.J. Lu

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).