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:
8d54681
)
make dynamic linker relocate the main program image last, after all libs
author
Rich Felker
<dalias@aerifal.cx>
Tue, 28 Jun 2011 18:13:51 +0000
(14:13 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 28 Jun 2011 18:13:51 +0000
(14:13 -0400)
prior to this change, copy relocations for initialized pointer
variables would not reflect the relocated contents of the pointer.
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 9a0697c8f9fb83148d010ae64922a9731f047204..82aaeec19eed8c1c9cdf0a8d8244b3f1cb8e0205 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-462,6
+462,7
@@
void *__dynlink(int argc, char **argv, size_t *got)
load_deps(head);
make_global(head);
+ reloc_all(head->next);
reloc_all(head);
if (rtld_used) {