This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
GCC stack protector with linux synthetic target
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Rutger Hofman <rutger at cs dot vu dot nl>
- Cc: eCos development list <ecos-devel at ecos dot sourceware dot org>
- Date: Mon, 29 Jun 2009 08:23:26 +0100
- Subject: GCC stack protector with linux synthetic target
- References: <4A475994.7010203@cs.vu.nl>
Hi Rutger
Rutger Hofman wrote:
> An aside: I run Ubuntu. At first, I couldn't run synth at all.
> Applications would crash, and gdb would crash on the application too!
> After some list searching, I found out that this probably is
> Ubuntu-specific. We need to include -fno-stack-protector in the
> GLOBAL_CFLAGS configure flag. Request: cannot this be automated for
> synth building? My guess is that it will not harm on systems other than
> Ubuntu, and it will save Ubuntu users effort.
Do you understand _why_ eCos is crashing with the GCC stack protector
enabled? Is it due to an assumption made in eCos regarding the stack
frame which could be corrected? We should ensure we understand the
nature of the failure before disabling this feature.
John Dallaway