[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [XTF RFC PATCH] build: pass -no-pie to LDFLAGS



On Tue, Jan 31, 2017 at 06:40:43AM -0700, Jan Beulich wrote:
> >>> On 31.01.17 at 14:22, <wei.liu2@xxxxxxxxxx> wrote:
> > Starting from ee3e265688, $(CC) is used for linking. That means all
> > default $(CC) flags coming from distro takes effect.
> 
> First of all I think $(CC) containing any flags is wrong - that's what
> $(CFLAGS) is for. Or are you saying the compiler's built in default is
> to generate PIE? And then in an environment like xtf or the hypervisor

The latter.

> (or kernels in general) such preset flags should imo simply be discarded.
> I.e. CFLAGS should start out all blank.
> 

No, emptying CFLAGS won't work because -pie is not there.

I suspect it is added to gcc specs, but I can't parse the output of `gcc
-dumpspecs`.


See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835148

 >gcc-6 6.2.0-7 uploaded to unstable on Tue 18 Oct 2016 defaults to PIE,

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.