lkml.org 
[lkml]   [2006]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: Linker error with latest tree on EM64T
From
Date
Hi Sam,

> > > From -linus:
> > > # Force gcc to behave correct even for buggy distributions
> > > CFLAGS += $(call cc-option, -fno-stack-protector-all \
> > > -fno-stack-protector)
> >
> > I used the latest tree from Linus and I see this in the Makefile, but it
> > is not working.
> Unexpected - let's see if we can nail it down then.
> Can you please try to edit the line above to include only one of the -f
> options and see if that helps. make V=1 may help to identify if the flag
> are picked up or not.

see my previous email. This patch fixed it for me:

diff --git a/Makefile b/Makefile
index 7c010f3..b4a2a80 100644
--- a/Makefile
+++ b/Makefile
@@ -308,7 +308,7 @@ LINUXINCLUDE := -Iinclude \
CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)

CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
- -fno-strict-aliasing -fno-common
+ -fno-strict-aliasing -fno-common -fno-stack-protector
# Force gcc to behave correct even for buggy distributions
CFLAGS += $(call cc-option, -fno-stack-protector-all \
-fno-stack-protector)
> Also could you try executing:
> if gcc -fno-stack-protector-all -S -o /dev/null -xc /dev/null; then \
> echo "y"; else echo "n"; fi
> And see if this gives a "y" or a "n".
> Try with -fno-stack-protector-all and with -fno-stack-protector.

With -fno-stack-protector I get a "y" and with -fno-stack-protector-all
I get an error:

cc1: error: unrecognized command line option "-fno-stack-protector-all"

Regards

Marcel


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-13 18:23    [W:0.042 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site