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:
fa91df4
)
more changes that were lost when committing mips dynamic linker
author
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 18:03:17 +0000
(14:03 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 18:03:17 +0000
(14:03 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 6801d5fd6762f01f74ef894aadfdfa8598a3206e..31ef68474b339da9e018f76750755da4ddb1193d 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-174,6
+174,8
@@
static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stri
_exit(127);
}
sym_size = sym->st_size;
+ } else {
+ sym_val = sym_size = 0;
}
do_single_reloc(reloc_addr, type, sym_val, sym_size, base, rel[2]);
}
@@
-688,9
+690,11
@@
void *__dynlink(int argc, char **argv)
* all memory used by the dynamic linker. */
runtime = 1;
+#ifndef DYNAMIC_IS_RO
for (i=0; app->dynv[i]; i+=2)
if (app->dynv[i]==DT_DEBUG)
app->dynv[i+1] = (size_t)&debug;
+#endif
debug.ver = 1;
debug.bp = _dl_debug_state;
debug.head = head;