qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>,
	Howard Spoelstra <hsp.cat7@gmail.com>
Subject: Re: [PULL v7 000/151] Meson-based build system
Date: Mon, 24 Aug 2020 17:18:48 +0100	[thread overview]
Message-ID: <20200824161848.GW10011@redhat.com> (raw)
In-Reply-To: <dd66cee7-c6d2-a81e-2e53-eca34ed78be8@redhat.com>

On Fri, Aug 21, 2020 at 02:33:12PM +0200, Paolo Bonzini wrote:
> On 21/08/20 12:58, Howard Spoelstra wrote:
> > I investigated a bit further and saw:
> > ldd in Fedora tells me the executable is "not a dynamic executable".
> 
> How are you executing ldd?  I cross built a mingw executable from Fedora
> and it was definitely using system DLLs.
> 
> PIE builds and doesn't start (doesn't even reach main) but --disable-pie
> works just fine.  I don't know if the same issue is present under
> Windows or it's Wine-specific.

I've just hit this problem too,  and can demo it without QEMU involved

$ cat e.c
#include <stdio.h>
#include <stdlib.h>

  int main(int argc, char **argv) {    fprintf(stderr, "Hello\n");    exit(EXIT_SUCCESS); }

$ x86_64-w64-mingw32-gcc -pie -o e.exe e.c 

the resulting e.exe fails to run under *both* Wine and Windows 2008r2.

Either there's some extra magic compiler flags we need to pass to make
this work, or we need to just disable PIE on Windows. The original
pre-meson build used -no-pie AFAICT.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



      parent reply	other threads:[~2020-08-24 16:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 21:32 [PULL v7 000/151] Meson-based build system Paolo Bonzini
2020-08-19 21:59 ` Eric Blake
2020-08-19 22:08   ` Paolo Bonzini
2020-08-20 10:33 ` Peter Maydell
2020-08-20 11:52   ` Paolo Bonzini
2020-08-20 14:54     ` Peter Maydell
2020-08-20 16:02       ` Paolo Bonzini
2020-08-20 16:10         ` Peter Maydell
2020-08-21  6:15 ` Howard Spoelstra
2020-08-21 10:58   ` Howard Spoelstra
2020-08-21 12:33     ` Paolo Bonzini
2020-08-21 16:11       ` Howard Spoelstra
2020-08-21 16:16         ` Paolo Bonzini
2020-08-24 16:18       ` Daniel P. Berrangé [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=20200824161848.GW10011@redhat.com \
    --to=berrange@redhat.com \
    --cc=hsp.cat7@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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).