+2017-08-13 Florian Weimer <fweimer@redhat.com>
+
+ * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
+ internal_function.
+ * nptl/allocatestack.c (__make_stacks_executable): Likewise.
+ * nptl/pthreadP.h (__make_stacks_executable): Likewise.
+ * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
+ internal_function from _dl_make_stack_executable_hook member.
+ (_dl_make_stack_executable): Remove internal_function.
+ * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
+ Likewise.
+ * sysdeps/unix/sysv/linux/dl-execstack.c
+ (_dl_make_stack_executable): Likewise.
+
2017-08-13 Florian Weimer <fweimer@redhat.com>
* sysdeps/unix/sysv/linux/netlinkaccess.h
/* If loading a shared object requires that we make the stack executable
when it was not, we do it by calling this function.
It returns an errno code or zero on success. */
-int (*_dl_make_stack_executable_hook) (void **) internal_function
- = _dl_make_stack_executable;
+int (*_dl_make_stack_executable_hook) (void **) = _dl_make_stack_executable;
/* Function in libpthread to wait for termination of lookups. */
int
-internal_function
__make_stacks_executable (void **stack_endp)
{
/* First the main thread's stack. */
extern void __reclaim_stacks (void) attribute_hidden;
/* Make all threads's stacks executable. */
-extern int __make_stacks_executable (void **stack_endp)
- internal_function attribute_hidden;
+extern int __make_stacks_executable (void **stack_endp) attribute_hidden;
/* longjmp handling. */
extern void __pthread_cleanup_upto (__jmp_buf target, char *targetframe);
/* If loading a shared object requires that we make the stack executable
when it was not, we do it by calling this function.
It returns an errno code or zero on success. */
- EXTERN int (*_dl_make_stack_executable_hook) (void **) internal_function;
+ EXTERN int (*_dl_make_stack_executable_hook) (void **);
/* Prevailing state of the stack, PF_X indicating it's executable. */
EXTERN ElfW(Word) _dl_stack_flags;
/* This is the initial value of GL(dl_make_stack_executable_hook).
A threads library can change it. */
-extern int _dl_make_stack_executable (void **stack_endp) internal_function;
+extern int _dl_make_stack_executable (void **stack_endp);
rtld_hidden_proto (_dl_make_stack_executable)
/* Variable pointing to the end of the stack (or close to it). This value
so as to mprotect it. */
int
-internal_function
_dl_make_stack_executable (void **stack_endp)
{
/* Challenge the caller. */
int
-internal_function
_dl_make_stack_executable (void **stack_endp)
{
/* This gives us the highest/lowest page that needs to be changed. */