>>> On 31.01.17 at 14:22, <wei.l...@citrix.com> 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
(or kernels in general) such preset flags should imo simply be discarded.
I.e. CFLAGS should start out all blank.

So if PIE simply is the compiler default, I'd suppose there's a way to
find out, and that could be leveraged for adding -no-pie. Otherwise
conditional option adding will need to be used (not sure whether xtf
has already inherited Xen's macros for this).

Jan


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

Reply via email to