From dc0a02638583d8e7f7e1cc72643d1b26ec6042fd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Mar 2013 15:39:32 -0700 Subject: Make _dl_phdr pointer to const. --- sysdeps/mach/hurd/i386/init-first.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/mach') 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 -- cgit 1.4.1