This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000801] Synthetic target crash with -fstack-protector


http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000801





--- Comment #2 from John Dallaway <john@dallaway.org.uk>  2009-06-30 10:37:38 ---
The GCC "-fstack-protector" feature became mainstream with GCC 4.1 so will be
present in the following Linux distributions and later versions:

  Fedora 5 (March 2006)
  openSUSE 10.1 (May 2006)
  Ubuntu 6.10 (October 2006)

I doubt there will be many developers using distros dating back to 2006 on
their desktop, but release machines may be using even older distros.

Thinking some more about this, adding the "-fno-stack-protector" switch to the
default CFLAGS for the linux synthetic target makes good sense from a usability
perspective. It really isn't obvious what the problem is when eCos linux
synthetic target applications crash due to "-fstack-protector". But an old
compiler complaining that it doesn't understand the "-fno-stack-protector"
switch provides a big clue and most users will soon determine that they can
safely remove the switch with older GCC. We could also mention this issue in
the description string for CYGBLD_GLOBAL_CFLAGS in the platform HAL.

While I agree that adding the "-fno-stack-protector" switch does not address
the underlying issue, on balance I think it makes sense to do this as a
temporary measure. It may be quite some time before the the underlying issue is
addressed.


-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]