diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-03-13 16:57:00 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-03-13 16:57:00 +0100 |
commit | 1333c0ac86766a06a87588eb83813c9ac5246af8 (patch) | |
tree | 3587e459d47e5efbc8a530e0c8c04a4d996f1b50 | |
parent | 2c829f65e5c6e00d67ac94f74d32dda678d91e29 (diff) | |
parent | bb61478ab469866d4fad4495168738aeab16feb7 (diff) |
Merge commit 'refs/top-bases/t/exec-static' into t/exec-static
-rw-r--r-- | sysdeps/mach/hurd/i386/init-first.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index 8ccd213c19..746000542c 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -180,12 +180,12 @@ init (int *data) ++envp; d = (void *) ++envp; +#ifndef SHARED /* 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]) { -#ifndef SHARED /* We may need to see our own phdrs, e.g. for TLS setup. Try the usual kludge to find the headers without help from the exec server. */ @@ -194,18 +194,14 @@ init (int *data) _dl_phdr = (ElfW(Phdr) *) ((const void *) ehdr + ehdr->e_phoff); _dl_phnum = ehdr->e_phnum; assert (ehdr->e_phentsize == sizeof (ElfW(Phdr))); -#endif } else { -#ifndef SHARED _dl_phdr = (ElfW(Phdr) *) d->phdr; _dl_phnum = d->phdrsz / sizeof (ElfW(Phdr)); assert (d->phdrsz % sizeof (ElfW(Phdr)) == 0); -#endif } -#ifndef SHARED /* We need to setup TLS before starting sigthread */ extern void __pthread_initialize_minimal(void); __pthread_initialize_minimal(); |