* kern/misc.c: Disable the __enable_execute_stack hack for utilities.

* include/grub/misc.h: Likewise.
This commit is contained in:
Grégoire Sutre 2010-04-03 21:00:21 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent b9396631bc
commit 187bbe3d9c
3 changed files with 7 additions and 2 deletions

View file

@ -1058,7 +1058,7 @@ grub_abort (void)
void abort (void) __attribute__ ((alias ("grub_abort")));
#endif
#ifdef NEED_ENABLE_EXECUTE_STACK
#if defined(NEED_ENABLE_EXECUTE_STACK) && !defined(GRUB_UTIL)
/* Some gcc versions generate a call to this function
in trampolines for nested functions. */
void __enable_execute_stack (void *addr __attribute__ ((unused)))