about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-03-28 15:39:32 -0700
committerRoland McGrath <roland@hack.frob.com>2013-03-28 15:39:32 -0700
commitdc0a02638583d8e7f7e1cc72643d1b26ec6042fd (patch)
tree86ec6fdccabc839223424322719e2f9eebae13c3 /elf
parent3d3436ae68a907f656a07604eb7e10a50e1c8f85 (diff)
downloadglibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.tar.gz
glibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.tar.xz
glibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.zip
Make _dl_phdr pointer to const.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index ad9b4c40b0..7a55b82e34 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -126,7 +126,7 @@ int _dl_debug_fd = STDERR_FILENO;
 int _dl_correct_cache_id = _DL_CACHE_DEFAULT_ID;
 
 ElfW(auxv_t) *_dl_auxv;
-ElfW(Phdr) *_dl_phdr;
+const ElfW(Phdr) *_dl_phdr;
 size_t _dl_phnum;
 uint64_t _dl_hwcap __attribute__ ((nocommon));
 
@@ -205,7 +205,7 @@ _dl_aux_init (ElfW(auxv_t) *av)
 	GLRO(dl_clktck) = av->a_un.a_val;
 	break;
       case AT_PHDR:
-	GL(dl_phdr) = (void *) av->a_un.a_val;
+	GL(dl_phdr) = (const void *) av->a_un.a_val;
 	break;
       case AT_PHNUM:
 	GL(dl_phnum) = av->a_un.a_val;