qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ben Taylor <sol10x86@cox.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Typo in get_reloc_expr (dyngen.c)
Date: Tue, 6 Jun 2006 7:52:47 -0400	[thread overview]
Message-ID: <5470482.1149594767793.JavaMail.root@eastrmwml06.mgt.cox.net> (raw)


Fabrice or Paul:

Can we get this added?  This patch has been posted to the list 4 or 5 times
in various incarnations in the last year or soj.   I posted a long message with
the logs from the compile on why the current code is wrong, and why this patch fixes
it.   The basic problem is that code uses a sizeof construct, instead of the size of
the string.  What happens is all the labels end up being truncated, and the op.c
won't compile on sparc.

see analysis of this problem in http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00494.html

Ben

---- Stuart Brady <sdbrady@ntlworld.com> wrote: 
> Hi,
> 
> There's a small bug in get_reloc_expr in dyngen.c.
> 
> It should only affect SPARC hosts, but it can't be causing any real
> problems, or someone would have noticed it by now.
> 
> I'm trying to port QEMU to PA-RISC[0], and needed this code, so it did
> actually affect me.  I've attached the (one-line) patch.
> -- 
> Stuart Brady
> 
> [0] http://homepage.ntlworld.com/wholehog/stuart/qemu/guest.html

             reply	other threads:[~2006-06-06 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-06 11:52 Ben Taylor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-05 14:04 [Qemu-devel] Typo in get_reloc_expr (dyngen.c) Stuart Brady

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=5470482.1149594767793.JavaMail.root@eastrmwml06.mgt.cox.net \
    --to=sol10x86@cox.net \
    --cc=qemu-devel@nongnu.org \
    /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 NNTP newsgroup(s).