Do not add relro attribute to __libc_stack_end

It does not actually work yet

* sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Remove relro attribute.
This commit is contained in:
Samuel Thibault 2015-11-25 17:05:53 +01:00
parent d1e815ed25
commit c679db4352
2 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@
* sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def. * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
* sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
libc_hidden_def. libc_hidden_def.
* sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Add relro * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Define
attribute, define rtld_hidden_data_def. rtld_hidden_data_def.
* sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def. * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
* sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
libc_hidden_def. libc_hidden_def.

View File

@ -55,7 +55,7 @@ rtld_hidden_data_def (__libc_enable_secure)
int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion
of init-first. */ of init-first. */
/* This variable contains the lowest stack address ever used. */ /* This variable contains the lowest stack address ever used. */
void *__libc_stack_end attribute_relro = NULL; void *__libc_stack_end;
rtld_hidden_data_def(__libc_stack_end) rtld_hidden_data_def(__libc_stack_end)
#if HP_TIMING_AVAIL #if HP_TIMING_AVAIL