public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@cygnus.com>
To: robertl@dgii.com
Cc: gas2@cygnus.com
Subject: Re: pushl computed immediate address on 2.8.1
Date: Fri, 02 Jan 1998 13:06:00 -0000	[thread overview]
Message-ID: <199801022106.QAA01775@subrogation.cygnus.com> (raw)
In-Reply-To: <19980102144041.15293@dgii.com>

   Date: Fri, 2 Jan 1998 14:40:41 -0600
   From: Robert Lipe <robertl@dgii.com>

   I was thinking this was a bug in the SCO x86 assembler becuase it worked
   under GAS for Linux.   However, after some prodding form the egcs folks 
   that really know PIC, I'm wondering if this is actually a construct that 
   GAS should produce an error for becuase GCC shouldn't emit it.

   The problem is that 

	   pushl $.LC0@GOTOFF(%ebx)

   seems to assemble just like

	   pushl $LC0

   so it ends up generating an push of an absolute address once the 
   linker gets done with it.

This happens because when gas sees the '$', it passes the rest of the
line to the expression parsing code.  The expression parser doesn't
recognize the '@', so it just returns .LC0.  gas then fails to notice
that part of the line wasn't parsed.

   Does this sound right at all?    Should GAS error on this?

It sounds wrong, and I'll change gas to emit an error.

Ian

  reply	other threads:[~1998-01-02 13:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-02 12:41 Robert Lipe
1998-01-02 13:06 ` Ian Lance Taylor [this message]
1998-01-02 13:26   ` Robert Lipe
1998-01-09 20:42 ` H.J. Lu
1998-01-09 23:02   ` Robert Lipe
1998-01-10 14:25     ` 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=199801022106.QAA01775@subrogation.cygnus.com \
    --to=ian@cygnus.com \
    --cc=gas2@cygnus.com \
    --cc=robertl@dgii.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).