From: "Niels Kristian Bech Jensen" <nkbj1970@hotmail.com>
To: linux-kernel@vger.kernel.org, linux-ppc@ozlabs.org
Subject: [PATCH 2.6.18-rc1] Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)
Date: Thu, 06 Jul 2006 13:28:58 +0200 [thread overview]
Message-ID: <BAY19-F228A2C0E9216D53EE93CDFCD770@phx.gbl> (raw)
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
This patch makes it possible to build the 2.6.18-rc1 kernel on Ubuntu Edgy
(powerpc architecture).
_________________________________________________________________
Vælg selv hvordan du vil kommunikere - skrift, tale, video eller billeder
med MSN Messenger: http://messenger.msn.dk
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: linux-2.6.18-rc1.diff --]
[-- Type: text/x-patch; name="linux-2.6.18-rc1.diff", Size: 1483 bytes --]
diff -uprN linux-2.6.18-rc1.orig/arch/powerpc/boot/Makefile linux-2.6.18-rc1/arch/powerpc/boot/Makefile
--- linux-2.6.18-rc1.orig/arch/powerpc/boot/Makefile 2006-07-06 12:26:57.000000000 +0200
+++ linux-2.6.18-rc1/arch/powerpc/boot/Makefile 2006-07-06 11:31:22.000000000 +0200
@@ -41,6 +41,10 @@ src-boot += $(zlib)
src-boot := $(addprefix $(obj)/, $(src-boot))
obj-boot := $(addsuffix .o, $(basename $(src-boot)))
+# Force gcc to behave correct even for buggy distributions
+BOOTCFLAGS += $(call cc-option, -fno-stack-protector,) \
+ $(call cc-option, -fno-stack-protector-all,)
+
BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
quiet_cmd_copy_zlib = COPY $@
diff -uprN linux-2.6.18-rc1.orig/Makefile linux-2.6.18-rc1/Makefile
--- linux-2.6.18-rc1.orig/Makefile 2006-07-06 12:26:49.000000000 +0200
+++ linux-2.6.18-rc1/Makefile 2006-07-06 11:30:09.000000000 +0200
@@ -310,8 +310,8 @@ CPPFLAGS := -D__KERNEL__ $(LINUXI
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common
# Force gcc to behave correct even for buggy distributions
-CFLAGS += $(call cc-option, -fno-stack-protector-all \
- -fno-stack-protector)
+CFLAGS += $(call cc-option, -fno-stack-protector,) \
+ $(call cc-option, -fno-stack-protector-all,)
AFLAGS := -D__ASSEMBLY__
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
reply other threads:[~2006-07-06 11:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY19-F228A2C0E9216D53EE93CDFCD770@phx.gbl \
--to=nkbj1970@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppc@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®