Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
On Mon, Sep 25, 2017 at 07:16:43AM -0600, Jan Beulich wrote: > > > > Actually I do have a wheezy chroot to verify that: > > > > (wheezy)wei@zion:/local/work$ gcc --version > > gcc (Debian 4.6.3-14) 4.6.3 > > > > (wheezy)wei@zion:/local/work$ gcc -no-pie > > gcc: error: unrecognized option '-no-p

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
On Mon, Sep 25, 2017 at 07:09:51AM -0600, Jan Beulich wrote: > > The build rune is in fact using HOSTCC to link the executable, hence we > > need -fno-pie. > > This should be "we need -no-pie", sorry. > > I'm not sure why omitting -fno-PIE is not a problem, but it works. > > All pretty confusin

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Jan Beulich
>>> On 25.09.17 at 15:01, wrote: > On Mon, Sep 25, 2017 at 01:55:03PM +0100, Wei Liu wrote: >> On Mon, Sep 25, 2017 at 05:54:41AM -0600, Jan Beulich wrote: >> > >>> On 25.09.17 at 13:43, wrote: >> > > On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: >> > >> >>> On 25.09.17 at 12:49,

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
On Mon, Sep 25, 2017 at 01:55:03PM +0100, Wei Liu wrote: > On Mon, Sep 25, 2017 at 05:54:41AM -0600, Jan Beulich wrote: > > >>> On 25.09.17 at 13:43, wrote: > > > On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: > > >> >>> On 25.09.17 at 12:49, wrote: > > >> > PIE may (and commonly wi

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Jan Beulich
>>> On 25.09.17 at 14:55, wrote: > On Mon, Sep 25, 2017 at 05:54:41AM -0600, Jan Beulich wrote: >> >>> On 25.09.17 at 13:43, wrote: >> > On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: >> >> >>> On 25.09.17 at 12:49, wrote: >> >> > PIE may (and commonly will) result in the binary be

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
On Mon, Sep 25, 2017 at 05:54:41AM -0600, Jan Beulich wrote: > >>> On 25.09.17 at 13:43, wrote: > > On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: > >> >>> On 25.09.17 at 12:49, wrote: > >> > PIE may (and commonly will) result in the binary being loaded above > >> > the 4Gb boundary

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Jan Beulich
>>> On 25.09.17 at 12:49, wrote: > PIE may (and commonly will) result in the binary being loaded above > the 4Gb boundary, which can't work with at least the VZEROUPPER compat > mode test. > > Reported-by: Wei Liu > Signed-off-by: Jan Beulich > Signed-off-by: Wei Liu > --- > Cc: Jan Beulich >

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Jan Beulich
>>> On 25.09.17 at 13:43, wrote: > On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: >> >>> On 25.09.17 at 12:49, wrote: >> > PIE may (and commonly will) result in the binary being loaded above >> > the 4Gb boundary, which can't work with at least the VZEROUPPER compat >> > mode test.

Re: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
On Mon, Sep 25, 2017 at 05:35:05AM -0600, Jan Beulich wrote: > >>> On 25.09.17 at 12:49, wrote: > > PIE may (and commonly will) result in the binary being loaded above > > the 4Gb boundary, which can't work with at least the VZEROUPPER compat > > mode test. > > > > Reported-by: Wei Liu > > Signe

[Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds

2017-09-25 Thread Wei Liu
PIE may (and commonly will) result in the binary being loaded above the 4Gb boundary, which can't work with at least the VZEROUPPER compat mode test. Reported-by: Wei Liu Signed-off-by: Jan Beulich Signed-off-by: Wei Liu --- Cc: Jan Beulich Cc: Andrew Cooper With this patch, vzeroupper passe

[Xen-devel] [PATCH] x86emul/test: disable PIE for 64-bit builds

2017-09-25 Thread Jan Beulich
PIE may (and commonly will) result in the binary being loaded above the 4Gb boundary, which can't work with at least the VZEROUPPER compat mode test. Reported-by: Wei Liu Signed-off-by: Jan Beulich --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -98,7 +98,8 @@