2019-04-12 16:38:20 +10:00
|
|
|
--- glibc-2.25.51/elf/dl-init.c.0044~ 2017-07-11 16:44:14.000000000 +0200
|
|
|
|
+++ glibc-2.25.51/elf/dl-init.c 2017-07-11 18:44:49.173115475 +0200
|
|
|
|
@@ -119,8 +119,6 @@ _dl_init (struct link_map *main_map, int
|
2014-05-22 18:55:40 +11:00
|
|
|
while (i-- > 0)
|
|
|
|
call_init (main_map->l_initfini[i], argc, argv, env);
|
|
|
|
|
|
|
|
-#ifndef HAVE_INLINED_SYSCALLS
|
|
|
|
/* Finished starting up. */
|
2016-09-01 14:57:23 +10:00
|
|
|
_dl_starting_up = 0;
|
2014-05-22 18:55:40 +11:00
|
|
|
-#endif
|
|
|
|
}
|
2019-04-12 16:38:20 +10:00
|
|
|
--- glibc-2.25.51/elf/dl-support.c.0044~ 2017-07-11 16:44:14.000000000 +0200
|
|
|
|
+++ glibc-2.25.51/elf/dl-support.c 2017-07-11 18:44:49.173115475 +0200
|
|
|
|
@@ -117,10 +117,8 @@ struct r_scope_elem _dl_initial_searchli
|
2014-05-22 18:55:40 +11:00
|
|
|
.r_nlist = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
-#ifndef HAVE_INLINED_SYSCALLS
|
|
|
|
/* Nonzero during startup. */
|
|
|
|
int _dl_starting_up = 1;
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
/* Random data provided by the kernel. */
|
|
|
|
void *_dl_random;
|
2019-04-12 16:38:20 +10:00
|
|
|
--- glibc-2.25.51/elf/rtld.c.0044~ 2017-07-11 16:44:14.000000000 +0200
|
|
|
|
+++ glibc-2.25.51/elf/rtld.c 2017-07-11 18:45:48.606706875 +0200
|
|
|
|
@@ -214,7 +214,6 @@ audit_list_iter_next (struct audit_list_
|
|
|
|
return iter->previous->name;
|
|
|
|
}
|
2014-05-22 18:55:40 +11:00
|
|
|
|
|
|
|
-#ifndef HAVE_INLINED_SYSCALLS
|
|
|
|
/* Set nonzero during loading and initialization of executable and
|
|
|
|
libraries, cleared before the executable's entry point runs. This
|
|
|
|
must not be initialized to nonzero, because the unused dynamic
|
2019-04-12 16:38:20 +10:00
|
|
|
@@ -224,7 +223,6 @@ audit_list_iter_next (struct audit_list_
|
2014-05-22 18:55:40 +11:00
|
|
|
never be called. */
|
|
|
|
int _dl_starting_up = 0;
|
2016-09-01 14:57:23 +10:00
|
|
|
rtld_hidden_def (_dl_starting_up)
|
2014-05-22 18:55:40 +11:00
|
|
|
-#endif
|
|
|
|
|
|
|
|
/* This is the structure which defines all variables global to ld.so
|
|
|
|
(except those which cannot be added for some reason). */
|
2019-04-12 16:38:20 +10:00
|
|
|
@@ -898,10 +896,8 @@ dl_main (const ElfW(Phdr) *phdr,
|
2014-05-22 18:55:40 +11:00
|
|
|
/* Process the environment variable which control the behaviour. */
|
|
|
|
process_envvars (&mode);
|
|
|
|
|
|
|
|
-#ifndef HAVE_INLINED_SYSCALLS
|
|
|
|
/* Set up a flag which tells we are just starting. */
|
2016-09-01 14:57:23 +10:00
|
|
|
_dl_starting_up = 1;
|
2014-05-22 18:55:40 +11:00
|
|
|
-#endif
|
|
|
|
|
|
|
|
if (*user_entry == (ElfW(Addr)) ENTRY_POINT)
|
|
|
|
{
|