From: Nick Clifton <nickc@cambridge.redhat.com>
To: Crni Gorac <cgorac@yahoo.com>
Cc: binutils@sources.redhat.com
Subject: Re: gas preprocessor
Date: Wed, 16 Jan 2002 03:37:00 -0000 [thread overview]
Message-ID: <m3adver308.fsf@north-pole.nickc.cambridge.redhat.com> (raw)
In-Reply-To: <20020115175703.59103.qmail@web14802.mail.yahoo.com>
Hi Crni,
> I tried what you suggested but seems like it doesn't
> work. Here is small assembly program:
>
> .set result, [ebp-4]
> mov result, dword ptr 42
> mov eax, result
> However, linker reports errors:
> foo.o: In function `answer':
> foo.o(.text+0x14): undefined reference to `ebp'
> foo.o(.text+0x1d): undefined reference to `ebp'
*sigh* Yes, it seems that the assembler does not recheck the
expression in an evaluated .set symbol to see if it is a register
name, so it creates a reference to a symbol called 'ebp'. I thinkt
you are going to have to use the C preprocessor instead. Sorry.
Cheers
Nick
prev parent reply other threads:[~2002-01-16 10:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-13 8:53 Crni Gorac
2002-01-15 7:06 ` Nick Clifton
2002-01-15 11:11 ` Crni Gorac
2002-01-16 3:37 ` Nick Clifton [this message]
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=m3adver308.fsf@north-pole.nickc.cambridge.redhat.com \
--to=nickc@cambridge.redhat.com \
--cc=binutils@sources.redhat.com \
--cc=cgorac@yahoo.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).