On Sun, 30 Oct 2016 01:32:14 -0300 "Raymond Burkholder <r...@oneunified.net>
wrote:

> From
> *http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc2/0002-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch
<http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc2/0002-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch>*
> +# force no-pie for distro compilers that enable pie by default
> +KBUILD_CFLAGS += $(call cc-option, -fno-pie)
> +KBUILD_CFLAGS += $(call cc-option, -no-pie)
> +KBUILD_AFLAGS += $(call cc-option, -fno-pie)
> +KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)

This fixes the build for me (gcc/g++ 6.2.0-10 from unstable, unpatched
linux kernel 4.8 with pf-kernel 4.8.5 patchset)

This is a pretty serious problem IMO, it should be addressed. PIE by
default seems like a bad idea.

Reply via email to