From: Rich Felker Date: Sun, 14 Oct 2012 03:23:29 +0000 (-0400) Subject: remove dead code from dynamic linker X-Git-Tag: v0.9.7~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31f340a17a0024b71e35fd6378d9a3caca050d43;p=oweals%2Fmusl.git remove dead code from dynamic linker --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index c3cb6115..1489f7d3 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -627,16 +627,6 @@ static void reloc_all(struct dso *p) } } -static void free_all(struct dso *p) -{ - struct dso *n; - while (p) { - n = p->next; - if (p->map && p!=libc && p!=head) free(p); - p = n; - } -} - static size_t find_dyn(Phdr *ph, size_t cnt, size_t stride) { for (; cnt--; ph = (void *)((char *)ph + stride))