public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: xinant@cognigine.com (Xinan Tang)
To: binutils@sources.redhat.com
Subject: "--gstabs and certain file names cause assembler error messages"
Date: Tue, 21 Aug 2001 13:35:00 -0000	[thread overview]
Message-ID: <3B82C60E.3090603@cognigine.com> (raw)

Hi

   I am using GNU assembler version 2.10 using BFD version 2.10 and I 
noticed a very strange bug related to the combination of --gstabs and 
file names.

   I have a simple program, `mau.s':
__________________________________
	.text
	.align 4
	.global main
main:
         goto undefined #purposely done
.end
___________________________________


    if I do:

	   as mau.s

    it runs correctly. However, if I do:

            as --gstabs mau.s

    it complains:
___________________________________________________________
  mau.s: Assembler messages:
mau.s:7: Error: local label "0" (instance number 0 of a dollar label) is 
not defined
______________________________________________

     First, the error message is incorrect since there is such a label.
Second, even though there is an undefined symbol, I do expect the
linker will report the error not the assembler.

     Furthermore, if I change the file name from `mau.s' to `mau_1.s',

     both `as' and `as --gstabs' run correctly and the error disappeared.

     Is the hash table being broken by such a combination?

Thanks

--Xinan



             reply	other threads:[~2001-08-21 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-21 13:35 Xinan Tang [this message]
2001-08-24  9:50 ` Nick Clifton

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=3B82C60E.3090603@cognigine.com \
    --to=xinant@cognigine.com \
    --cc=binutils@sources.redhat.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).