diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-07-26 08:42:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-07-26 08:42:54 +0000 |
commit | ff0bf75374401cd3a726d209198dca4af272b1c2 (patch) | |
tree | 7acb04059fc30aefb6a89284c02b818ccb350175 /elf/dl-load.c | |
parent | bdd24a302efff7f6e7df9a0accbc382a12d803ff (diff) | |
download | glibc-ff0bf75374401cd3a726d209198dca4af272b1c2.tar glibc-ff0bf75374401cd3a726d209198dca4af272b1c2.tar.gz glibc-ff0bf75374401cd3a726d209198dca4af272b1c2.tar.bz2 glibc-ff0bf75374401cd3a726d209198dca4af272b1c2.zip |
* sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
* elf/dl-load.c (local_strdup): Remove inline.
(_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
* elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
part of the object.
* sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 94531b271f..8a8936f7bd 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -163,7 +163,7 @@ static const size_t system_dirs_len[] = /* Local version of `strdup' function. */ -static inline char * +static char * local_strdup (const char *s) { size_t len = strlen (s) + 1; @@ -1470,15 +1470,6 @@ cannot enable executable stack as shared object requires"); { /* Create an appropriate searchlist. It contains only this map. This is the definition of DT_SYMBOLIC in SysVr4. */ - l->l_symbolic_searchlist.r_list = - (struct link_map **) malloc (sizeof (struct link_map *)); - - if (l->l_symbolic_searchlist.r_list == NULL) - { - errstring = N_("cannot create searchlist"); - goto call_lose_errno; - } - l->l_symbolic_searchlist.r_list[0] = l; l->l_symbolic_searchlist.r_nlist = 1; |