projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0a8f4
)
(_dl_make_stack_executable): Disable for static linking.
author
Roland McGrath
<roland@gnu.org>
Sat, 20 Mar 2004 20:30:05 +0000
(20:30 +0000)
committer
Roland McGrath
<roland@gnu.org>
Sat, 20 Mar 2004 20:30:05 +0000
(20:30 +0000)
sysdeps/mach/hurd/dl-execstack.c
patch
|
blob
|
history
diff --git
a/sysdeps/mach/hurd/dl-execstack.c
b/sysdeps/mach/hurd/dl-execstack.c
index
d5c0736
..
0e82a3f
100644
(file)
--- a/
sysdeps/mach/hurd/dl-execstack.c
+++ b/
sysdeps/mach/hurd/dl-execstack.c
@@
-35,6
+35,7
@@
_dl_make_stack_executable (void **stack_endp)
return EPERM;
*stack_endp = NULL;
+#ifdef IS_IN_rtld
if (__mprotect ((void *)_dl_hurd_data->stack_base, _dl_hurd_data->stack_size,
PROT_READ|PROT_WRITE|PROT_EXEC) != 0)
return errno;
@@
-43,5
+44,9
@@
_dl_make_stack_executable (void **stack_endp)
GL(dl_stack_flags) |= PF_X;
return 0;
+#else
+ /* We don't bother to implement this for static linking. */
+ return ENOSYS;
+#endif
}
rtld_hidden_def (_dl_make_stack_executable)