public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
@ 2009-10-22 19:37 colin at reactos dot org
2009-10-22 20:05 ` [Bug target/41799] " ktietz at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: colin at reactos dot org @ 2009-10-22 19:37 UTC (permalink / raw)
To: gcc-bugs
The __enable_execute_stack code introduced for the target "mingw32" in r134089
doesn't work for kernel-mode components. These components can link to libgcc,
but never link to kernel32.
It would be good if there was a way to turn off this code, for example by a
-f/-fno compiler flag.
--
Summary: __enable_execute_stack introduced for mingw32 in r134089
doesn't work for kernel-mode components
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: colin at reactos dot org
GCC target triplet: mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/41799] __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
@ 2009-10-22 20:05 ` ktietz at gcc dot gnu dot org
2009-10-23 17:59 ` ktietz at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-10-22 20:05 UTC (permalink / raw)
To: gcc-bugs
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-10-22 20:04:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/41799] __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
2009-10-22 20:05 ` [Bug target/41799] " ktietz at gcc dot gnu dot org
@ 2009-10-23 17:59 ` ktietz at gcc dot gnu dot org
2009-10-24 18:31 ` colin at reactos dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-10-23 17:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ktietz at gcc dot gnu dot org 2009-10-23 17:59 -------
Created an attachment (id=18882)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18882&action=view)
Patch for enable for mingw32 targets -fset-stack-executable
Changelog
* config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
* config/i386/mingw.opt: Add fset-stack-executable.
* config/i386/i386.c (ix86_trampoline_init): Make call to
emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
defined and its value is not zero.
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ktietz at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/41799] __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
2009-10-22 20:05 ` [Bug target/41799] " ktietz at gcc dot gnu dot org
2009-10-23 17:59 ` ktietz at gcc dot gnu dot org
@ 2009-10-24 18:31 ` colin at reactos dot org
2009-10-26 19:24 ` ktietz at gcc dot gnu dot org
2009-10-27 17:17 ` ktietz at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: colin at reactos dot org @ 2009-10-24 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from colin at reactos dot org 2009-10-24 18:31 -------
Already said on IRC but for the record: The patch works well and setting
-fno-set-stack-executable fixes the problem for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/41799] __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
` (2 preceding siblings ...)
2009-10-24 18:31 ` colin at reactos dot org
@ 2009-10-26 19:24 ` ktietz at gcc dot gnu dot org
2009-10-27 17:17 ` ktietz at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-10-26 19:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ktietz at gcc dot gnu dot org 2009-10-26 19:24 -------
Patch post at http://gcc.gnu.org/ml/gcc-patches/2009-10/msg01577.html to ML
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/41799] __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
` (3 preceding siblings ...)
2009-10-26 19:24 ` ktietz at gcc dot gnu dot org
@ 2009-10-27 17:17 ` ktietz at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-10-27 17:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ktietz at gcc dot gnu dot org 2009-10-27 17:16 -------
Applied to trunk at revision 153606.
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41799
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-27 17:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22 19:37 [Bug target/41799] New: __enable_execute_stack introduced for mingw32 in r134089 doesn't work for kernel-mode components colin at reactos dot org
2009-10-22 20:05 ` [Bug target/41799] " ktietz at gcc dot gnu dot org
2009-10-23 17:59 ` ktietz at gcc dot gnu dot org
2009-10-24 18:31 ` colin at reactos dot org
2009-10-26 19:24 ` ktietz at gcc dot gnu dot org
2009-10-27 17:17 ` ktietz at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).