mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
2004-09-20 Roland McGrath <roland@frob.com>
* elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN in initializer #if defined.
This commit is contained in:
parent
703ccc1245
commit
44828b9d2a
@ -105,11 +105,13 @@ ELF_PREFERRED_ADDRESS_DATA;
|
||||
|
||||
|
||||
int __stack_prot attribute_hidden attribute_relro
|
||||
#if _STACK_GROWS_DOWN
|
||||
= PROT_READ|PROT_WRITE|PROT_GROWSDOWN;
|
||||
#elif _STACK_GROWS_UP
|
||||
= PROT_READ|PROT_WRITE|PROT_GROWSUP;
|
||||
= (PROT_READ|PROT_WRITE
|
||||
#if _STACK_GROWS_DOWN && defined PROT_GROWSDOWN
|
||||
|PROT_GROWSDOWN
|
||||
#elif _STACK_GROWS_UP && defined PROT_GROWSUP
|
||||
|PROT_GROWSUP
|
||||
#endif
|
||||
);
|
||||
|
||||
|
||||
/* Type for the buffer we put the ELF header and hopefully the program
|
||||
|
Loading…
Reference in New Issue
Block a user