2004-07-05  Ulrich Drepper  <drepper@redhat.com>

	* elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
This commit is contained in:
Ulrich Drepper 2004-07-05 07:35:11 +00:00
parent 3820540200
commit c7acde5988
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-07-05 Ulrich Drepper <drepper@redhat.com>
* elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
* sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver

View file

@ -1260,7 +1260,7 @@ ERROR: ld.so: object '%s' from %s cannot be preloaded: ignored.\n",
struct link_map *l = _dl_new_object ((char *) "", "", lt_library, NULL);
if (__builtin_expect (l != NULL, 1))
{
static ElfW(Dyn) dyn_temp[DL_RO_DYN_TEMP_CNT];
static ElfW(Dyn) dyn_temp[DL_RO_DYN_TEMP_CNT] attribute_relro;
l->l_phdr = ((const void *) GLRO(dl_sysinfo_dso)
+ GLRO(dl_sysinfo_dso)->e_phoff);