Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 449158 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]
check if -fPIE and disable it
kernel-gcc-default-pie.patch (text/plain), 934 bytes, created by
Magnus Granberg
on 2016-10-04 21:13:09 UTC
(
hide
)
Description:
check if -fPIE and disable it
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2016-10-04 21:13:09 UTC
Size:
934 bytes
patch
obsolete
>--- a/Makefile 2016-10-01 18:59:31.920283338 +0200 >+++ b/Makefile 2016-10-04 22:21:06.056623037 +0200 >@@ -688,6 +684,12 @@ endif > endif > KBUILD_CFLAGS += $(stackp-flag) > >+# Check if compiler default to -fPIE/-fpie >+ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-default-pie.sh $(CC)), y) >+ KBUILD_CFLAGS += -fno-PIE >+ KBUILD_AFLAGS += -fno-PIE >+endif >+ > ifdef CONFIG_KCOV > ifeq ($(call cc-option, $(CFLAGS_KCOV)),) > $(warning Cannot use CONFIG_KCOV: \ >--- 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,13 @@ >+#!/bin/sh >+# Test if gcc default to -fPIE/-fpie >+# Copyright (C) 2016, Magnus Granberg <zorry@gentoo.org> >+ >+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
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