Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 450174 Details for
Bug 584014
sys-kernel/gentoo-sources-4.6.0: building w/gcc-6[pie]: kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.8
kernel-gcc-default-pie.patch (text/plain), 874 bytes, created by
Magnus Granberg
on 2016-10-13 18:49:54 UTC
(
hide
)
Description:
patch for 4.8
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2016-10-13 18:49:54 UTC
Size:
874 bytes
patch
obsolete
>--- a/scripts/gcc-default-pie.sh 2016-10-04 22:42:53.676653594 +0200 >+++ b/scripts/gcc-default-pie.sh 2016-10-04 22:03:43.816598681 +0200 >@@ -0,0 +1,12 @@ >+#!/bin/sh >+# Test if gcc default to -fPIE/-fpie >+ >+cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" >+int main(void) >+{ >+#if !(defined(__PIE__) || defined(__pie__)) >+#error "Compiler don't default to PIE" >+#endif >+ return 0; >+} >+END >--- a/Makefile >+++ b/Makefile >@@ -674,6 +674,12 @@ ifdef CONFIG_CC_STACKPROTECTOR > endif > KBUILD_CFLAGS += $(stackp-flag) > >+# Force off for compilers that enable PIE by default. >+ifeq ($(CONFIG_SHELL) $(srctree)/scripts/gcc-default-pie.sh $(CC), y) >+KBUILD_CFLAGS += -fno-PIE >+KBUILD_ASFLAG += -fno-PIE >+endif >+ > ifeq ($(cc-name),clang) > KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) > KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 584014
:
435292
|
435394
|
449158
|
450174
|
453568
|
454150