From: Mattias Nissler <mattias.nissler@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] compilation fix
Date: Tue, 10 Jan 2006 02:11:59 +0100 [thread overview]
Message-ID: <1136855520.7810.27.camel@localhost> (raw)
Hi,
I'm running the gentoo version of gcc-3.4.5 on my ppc system here. The
patch below is required to make qemu compile cleanly for me. The
compiler gives me some very unintuitive error message from within an
__asm__ statement but the fix is rather trivial.
The patch fixes line 746 of linux-user/elfload.c:
if (k_platform)
NEW_AUX_ENT(AT_PLATFORM, (target_ulong) u_platform);
In the original definition NEW_AUX_ENT expanded to several statements
of which only the first will be dependant on the if statement above. I
guess the patch changes the code to the way it was actually intended.
Mattias
--- old/linux-user/elfload.c 2006-01-10 01:35:28.000000000 +0100
+++ new/linux-user/elfload.c 2006-01-10 01:35:54.000000000 +0100
@@ -723,9 +723,11 @@
sp -= ((unsigned long)csp & 15UL) / sizeof(*sp);
#define NEW_AUX_ENT(id, val) \
+({ \
sp -= 2; \
put_user (id, sp); \
- put_user (val, sp + 1)
+ put_user (val, sp + 1); \
+})
NEW_AUX_ENT (AT_NULL, 0);
/* There must be exactly DLINFO_ITEMS entries here. */
reply other threads:[~2006-01-10 1:20 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=1136855520.7810.27.camel@localhost \
--to=mattias.nissler@gmx.de \
--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).