From: Marcel Holtmann <marcel@holtmann.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Arjan van de Ven <arjan@infradead.org>,
jakub@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: Linker error with latest tree on EM64T
Date: Thu, 13 Jul 2006 18:17:06 +0200 [thread overview]
Message-ID: <1152807426.4838.59.camel@localhost> (raw)
In-Reply-To: <20060713161020.GA22355@mars.ravnborg.org>
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
next prev parent reply other threads:[~2006-07-13 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-13 10:56 Linker error with latest tree on EM64T Marcel Holtmann
2006-07-13 10:59 ` Arjan van de Ven
2006-07-13 11:58 ` Marcel Holtmann
2006-07-13 13:26 ` Sam Ravnborg
2006-07-13 13:30 ` Marcel Holtmann
2006-07-13 16:10 ` Sam Ravnborg
2006-07-13 16:17 ` Marcel Holtmann [this message]
2006-07-13 18:29 ` Sam Ravnborg
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=1152807426.4838.59.camel@localhost \
--to=marcel@holtmann.org \
--cc=arjan@infradead.org \
--cc=jakub@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.