diff options
Diffstat (limited to 'linker/linker_main.cpp')
-rw-r--r-- | linker/linker_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp index 3410f9068..af4761990 100644 --- a/linker/linker_main.cpp +++ b/linker/linker_main.cpp @@ -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); |