From: ralf@uni-koblenz.de
To: linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com,
linux-mips@vger.rutgers.edu
Cc: hjl@lucon.org
Subject: Assembler bug
Date: Wed, 27 May 1998 04:26:29 +0200 [thread overview]
Message-ID: <19980527042629.62884@uni-koblenz.de> (raw)
I ran into an assembler bug which affects at least MIPS GAS 2.7 and 2.8.1.
An example which triggers the bug:
[ralf@lappi ralf]$ cat s.s
.globl label1
label1:
.org 0x1000
.align 13 # align on 8kb boundary
[ralf@lappi /tmp]$ mips-linux-as -O3 -o s.o s.s
[ralf@lappi /tmp]$ mips-linux-objdump --syms s.o | grep label1
0000000000002000 g O .text 0000000000000000 label1
[ralf@lappi /tmp]$
=> Label label1 get's the wrong value 0x2000, not 0x0 as it should,
assigned. Inserting a label definition after the .org pseudo op generates
correct code again. I haven't tried this on non-MIPS GAS.
Ralf
reply other threads:[~1998-05-27 3:14 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=19980527042629.62884@uni-koblenz.de \
--to=ralf@uni-koblenz.de \
--cc=hjl@lucon.org \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@vger.rutgers.edu \
--cc=linux@cthulhu.engr.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.