This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [3.3 regression?] flag_hosted and back-ends
On Fri, Mar 14, 2003 at 03:54:18PM -0800, Geoff Keating wrote:
> Why can't GRUB supply its own __enable_execute_stack function, that
> does whatever the right thing is for GRUB's environment?
I can see a couple of reasons why that would not be appropriate:
* Random applications should not have to know about internal
routines in libgcc.
* An application that uses -ffreestanding has pretty much
told the compiler "don't assume I'm in a hosted environment".
The __enable_execute_stack() function *does* assume a hosted
environment. It seems perfectly logical that it should not
be used if the application is free-standing.
--
-- Jason R. Thorpe <thorpej at wasabisystems dot com>