summaryrefslogtreecommitdiff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-10-13 23:23:29 -0400
committerRich Felker <dalias@aerifal.cx>2012-10-13 23:23:29 -0400
commit31f340a17a0024b71e35fd6378d9a3caca050d43 (patch)
tree443fdd76da972c3eb74fa2f6eaad2cfc78a84841 /src/ldso
parent216dca82f6948627f55a0a04ab7d63a12213d8ed (diff)
downloadmusl-31f340a17a0024b71e35fd6378d9a3caca050d43.tar.gz
musl-31f340a17a0024b71e35fd6378d9a3caca050d43.tar.bz2
musl-31f340a17a0024b71e35fd6378d9a3caca050d43.tar.xz
musl-31f340a17a0024b71e35fd6378d9a3caca050d43.zip
remove dead code from dynamic linker
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/dynlink.c10
1 files changed, 0 insertions, 10 deletions
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))