aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-07-05 07:35:11 +0000
committerUlrich Drepper <drepper@redhat.com>2004-07-05 07:35:11 +0000
commitc7acde598834e5dc952d516663112741444c97e9 (patch)
tree121c05e250760f5fd0fd48d04844f2ba9fdcfd18
parent382054020099eb8d0350a305d3719f92317e7912 (diff)
downloadglibc-c7acde598834e5dc952d516663112741444c97e9.zip
glibc-c7acde598834e5dc952d516663112741444c97e9.tar.gz
glibc-c7acde598834e5dc952d516663112741444c97e9.tar.bz2
Update.
2004-07-05 Ulrich Drepper <drepper@redhat.com> * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
-rw-r--r--ChangeLog4
-rw-r--r--elf/rtld.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a936dd..e9cdaed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/elf/rtld.c b/elf/rtld.c
index 31521c6..2e7a9b6 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -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);