qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bob Deblier <bob.deblier@telenet.be>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Linux x86_64 host
Date: Thu, 07 Oct 2004 20:37:54 +0200	[thread overview]
Message-ID: <1097174274.2833.41.camel@orion> (raw)
In-Reply-To: <Pine.LNX.4.58.0410071811510.29535@wgmdd8.biozentrum.uni-wuerzburg.de>

On Thu, 2004-10-07 at 18:16, Johannes Schindelin wrote:
> What if you change this line to HOST_AMD64, and just comment the fprintf
> (not the continue)? Of course, you have to change the lines around 1707
> like so:
> 
>                     if (strstart(sym_name, "__op_param", &p)) {
>                         snprintf(name, sizeof(name), "param%s", p);
>                     } else if(sym_name[0]=='.') {
>                         continue;
>                     } else {
>                         snprintf(name, sizeof(name), "(long)(&%s)",
> sym_name);
>                     }
> 
> (the "else if" and the "continue" are important).
> 
> Explanation: sym_names with a "." are most likely local symbols like jump
> labels, which should not even be exported in the object file.

Gotcha - I know excatly what you're referring to now. Still doesn't
completely fix the problem, but hopefully the following patch will:

diff -r1.35 dyngen.c
1541c1541,1542
<                     fprintf(outfile, "extern char %s;\n", sym_name);
---
>                                       if (sym_name[0] != '.')
>                                               fprintf(outfile, "extern
char %s;\n", sym_name);
1707c1708,1710
<                     } else {
---
>                     } else if (sym_name[0] == '.') {
>                                               continue;
>                                       } else {

Sincerely,

Bob Deblier

      reply	other threads:[~2004-10-07 18:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-07 13:42 [Qemu-devel] Linux x86_64 host Bob Deblier
2004-10-07 15:07 ` Johannes Schindelin
2004-10-07 15:25   ` Bob Deblier
2004-10-07 16:16     ` Johannes Schindelin
2004-10-07 18:37       ` Bob Deblier [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=1097174274.2833.41.camel@orion \
    --to=bob.deblier@telenet.be \
    --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).