/[linux-patches]/genpatches-2.6/trunk/2.6.16/1715_ppc32-crosscc-ssp.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/1715_ppc32-crosscc-ssp.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 371 - (show annotations) (download) (as text)
Tue Apr 11 11:59:54 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 1142 byte(s)
damnit\!
1 --- a/arch/powerpc/boot/Makefile 2006-04-11 12:50:11.000000000 +0100
2 +++ b/arch/powerpc/boot/Makefile 2006-04-11 12:51:49.000000000 +0100
3 @@ -20,10 +20,19 @@
4 # CROSS32_COMPILE is setup as a prefix just like CROSS_COMPILE
5 # in the toplevel makefile.
6
7 +# cc-option-crosscc
8 +# We can't rely on the host compiler in this situation, so we define
9 +# a modified cc-option macro for this task.
10 +# Usage: cflags-y += $(call cc-option-crosscc, -march=winchip-c6, -march=i586)
11 +
12 +cc-option-crosscc = $(shell if $(CROSS32CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
13 + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
14
15 HOSTCC := gcc
16 BOOTCFLAGS := $(HOSTCFLAGS) -fno-builtin -nostdinc -isystem \
17 - $(shell $(CROSS32CC) -print-file-name=include) -fPIC
18 + $(shell $(CROSS32CC) -print-file-name=include) -fPIC \
19 + $(call cc-option-crosscc, -fno-stack-protector) \
20 + $(call cc-option-crosscc, -fno-stack-protector-all)
21 BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
22 OBJCOPYFLAGS := contents,alloc,load,readonly,data
23 OBJCOPY_COFF_ARGS := -O aixcoff-rs6000 --set-start 0x500000

  ViewVC Help
Powered by ViewVC 1.1.20