From: Samuel Thibault Date: Sat, 16 Dec 2017 14:37:43 +0000 (+0000) Subject: Fix boot with statically-linked exec server. X-Git-Tag: archive/raspbian/2.25-5+rpi1^2~117 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71d424b648bef257cd5e83a72e089d1e5a227ce6;p=glibc.git Fix boot with statically-linked exec server. * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by oneself when the pointer given in D is nul (as set by ext2fs). Signed-off-by: Samuel Thibault Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name tg-exec-static.diff --- diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index 77631f02b..b649459c1 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -173,7 +173,7 @@ init (int *data) /* If we are the bootstrap task started by the kernel, then after the environment pointers there is no Hurd data block; the argument strings start there. */ - if ((void *) d == argv[0]) + if ((void *) d == argv[0] || !d->phdr) { /* With a new enough linker (binutils-2.23 or better), the magic __ehdr_start symbol will be available and