projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216dca8
)
remove dead code from dynamic linker
author
Rich Felker
<dalias@aerifal.cx>
Sun, 14 Oct 2012 03:23:29 +0000
(23:23 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 14 Oct 2012 03:23:29 +0000
(23:23 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index c3cb6115b50e0177b17606b72fa23bcc670fd7d0..1489f7d3c86ff19e595c4993a4a973a5b92e0ef6 100644
(file)
--- 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))