Subject: toolchain/18667: make libgcc do mprotects of trampolines on the stack
To: None <gnats-bugs@gnats.netbsd.org>
From: None <perry@piermont.com>
List: netbsd-bugs
Date: 10/15/2002 19:36:08
>Number:         18667
>Category:       toolchain
>Synopsis:       make libgcc do mprotects of trampolines on the stack
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 15 16:37:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Perry E. Metzger
>Release:        NetBSD 1.6H
>Organization:
Perry E. Metzger		perry@piermont.com
--
"Ask not what your country can force other people to do for you..."
>Environment:
	
	
System: NetBSD alchemist 1.6H NetBSD 1.6H (ALCHEMIST) #0: Thu Oct 3 19:36:25 EDT 2002 perry@alchemist:/usr/src/sys/arch/i386/compile/ALCHEMIST i386
Architecture: i386
Machine: i386
>Description:
	It is possible to arrange for libgcc to be configured to use
an architecture's mprotect call or equivalent to make only the section
of the stack segment around a trampoline on the stack executable. This
should be done to permit us to run with the stack generally non-executable.
>How-To-Repeat:
	
>Fix:
	Do the right thing in the toolchain.
>Release-Note:
>Audit-Trail:
>Unformatted: