public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: hjl@nynexst.com (H.J. Lu)
To: ian@cygnus.com (Ian Lance Taylor), gas2@cygnus.com
Subject: Patches for i386.h in the gas snapshot
Date: Mon, 06 Mar 1995 06:15:00 -0000	[thread overview]
Message-ID: <9503050450.AA09502@titanic.nynexst.com> (raw)

Hi,

Does it look ok?

H.J.
-----
Forwarded message:
From owner-gcc@vger.rutgers.edu Tue Feb 28 02:37:11 1995
Message-Id: <m0rjLwm-0002WkC@sunny>
From: alan@spri.levels.unisa.edu.au (Alan Modra)
Subject: Re: The new x86 gas in binutils.
To: hjl@nynexst.com (H.J. Lu)
Date: Tue, 28 Feb 1995 17:32:15 +1030 (CST)
Cc: raeburn@cygnus.com (Ken Raeburn), linux-gcc@vger.rutgers.edu
In-Reply-To: < 9502280612.AA18703@titanic.nynexst.com > from "H.J. Lu" at Feb 28, 95 01:18:13 am
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 1831      
Sender: owner-gcc@vger.rutgers.edu
Precedence: bulk

> 
> Hi,
> 
> I have been trying to compile the new binutils snapshot under Linux
> for a while now. I am usung gas-950222. I have found the following
> things:
> 
> 1. Some 16 bit supports were added to the binutils. Some assembly
>    codes in the Linux C library had to be modified to assembler.
>    One example is I had to change "popfl" to just "popf". There
>    may be more in the Linux kernel code. I am not sure if that is
>    a feature or a bug :-(.

Try the following.  It fixes the push/pop problem.

diff -ur gas-950214/include/opcode/i386.h ./include/opcode/i386.h
--- gas-950214/include/opcode/i386.h	Thu Feb 16 09:58:43 1995
+++ ./include/opcode/i386.h	Wed Feb 15 14:09:09 1995
@@ -99,10 +99,12 @@
 {"cmc", 0, 0xf5, _, NoModrm, { 0, 0, 0} },
 {"lahf", 0, 0x9f, _, NoModrm, { 0, 0, 0} },
 {"sahf", 0, 0x9e, _, NoModrm, { 0, 0, 0} },
-{"pushf", 0, 0x9c, _, NoModrm|Data32, { 0, 0, 0} },
-{"popf", 0, 0x9d, _, NoModrm|Data32, { 0, 0, 0} },
+{"pushfl", 0, 0x9c, _, NoModrm|Data32, { 0, 0, 0} },
+{"popfl", 0, 0x9d, _, NoModrm|Data32, { 0, 0, 0} },
 {"pushfw", 0, 0x9c, _, NoModrm|Data16, { 0, 0, 0} },
 {"popfw", 0, 0x9d, _, NoModrm|Data16, { 0, 0, 0} },
+{"pushf", 0, 0x9c, _, NoModrm, { 0, 0, 0} },
+{"popf", 0, 0x9d, _, NoModrm, { 0, 0, 0} },
 {"stc", 0, 0xf9, _, NoModrm, { 0, 0, 0} },
 {"std", 0, 0xfd, _, NoModrm, { 0, 0, 0} },
 {"sti", 0, 0xfb, _, NoModrm, { 0, 0, 0} },


> 2. The new binutils are very unstable for ELF with PIC. I couldn't
>    use gas/ld in gas-950222 to make a shared Linux C library in
>    ELF. I had to go back to my private version, 2.5.2.7.
> 
> I am afraid the current new binutils are not usable for Linux and
> once when they get fixed some asm code in the Linux kernel may
> have to be modified.
> 
> 
> 
> -- 
> H.J. Lu
> NYNEX Science and Technology, Inc.			hjl@nynexst.com
> 



-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com


                 reply	other threads:[~1995-03-06  6:15 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=9503050450.AA09502@titanic.nynexst.com \
    --to=hjl@nynexst.com \
    --cc=gas2@cygnus.com \
    --cc=ian@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).