diff options
author | Roland McGrath <roland@hack.frob.com> | 2013-03-28 15:39:32 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2013-03-28 15:39:32 -0700 |
commit | dc0a02638583d8e7f7e1cc72643d1b26ec6042fd (patch) | |
tree | 86ec6fdccabc839223424322719e2f9eebae13c3 /sysdeps | |
parent | 3d3436ae68a907f656a07604eb7e10a50e1c8f85 (diff) | |
download | glibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.tar.gz glibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.tar.xz glibc-dc0a02638583d8e7f7e1cc72643d1b26ec6042fd.zip |
Make _dl_phdr pointer to const.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/init-first.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 89db552542..41684f3837 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -603,7 +603,7 @@ extern const struct rtld_global_ro _rtld_global_ro #ifndef SHARED /* dl-support.c defines these and initializes them early on. */ -extern ElfW(Phdr) *_dl_phdr; +extern const ElfW(Phdr) *_dl_phdr; extern size_t _dl_phnum; #endif diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index 3cfddce15f..59253db539 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -122,7 +122,7 @@ init1 (int argc, char *arg0, ...) the exec server. */ extern const void _start; const ElfW(Ehdr) *const ehdr = &_start; - _dl_phdr = (ElfW(Phdr) *) ((const void *) ehdr + ehdr->e_phoff); + _dl_phdr = (const void *) ehdr + ehdr->e_phoff; _dl_phnum = ehdr->e_phnum; assert (ehdr->e_phentsize == sizeof (ElfW(Phdr))); #endif |