mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-24 23:22:04 +03:00
make dynamic linker relocate the main program image last, after all libs
prior to this change, copy relocations for initialized pointer variables would not reflect the relocated contents of the pointer.
This commit is contained in:
parent
8d54681f15
commit
c7debe13ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user