Merge "Move [vdso] after exe/linker in _r_debug"
This commit is contained in:
commit
8f2298e73f
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,6 @@ static ElfW(Addr) linker_main(KernelArgumentBlock& args) {
|
|||
}
|
||||
}
|
||||
|
||||
add_vdso(args);
|
||||
|
||||
struct stat file_stat;
|
||||
// Stat "/proc/self/exe" instead of executable_path because
|
||||
// the executable could be unlinked by this point and it should
|
||||
|
@ -320,6 +318,8 @@ static ElfW(Addr) linker_main(KernelArgumentBlock& args) {
|
|||
insert_link_map_into_debug_map(map);
|
||||
insert_link_map_into_debug_map(&linker_link_map);
|
||||
|
||||
add_vdso(args);
|
||||
|
||||
// Extract information passed from the kernel.
|
||||
si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
|
||||
si->phnum = args.getauxval(AT_PHNUM);
|
||||
|
|
Loading…
Reference in a new issue