From: Waldemar Kozaczuk <[email protected]> Committer: Waldemar Kozaczuk <[email protected]> Branch: master
aarch64: clear atexit pointer before jumping to ELF entry point Signed-off-by: Waldemar Kozaczuk <[email protected]> --- diff --git a/arch/aarch64/arch-elf.hh b/arch/aarch64/arch-elf.hh --- a/arch/aarch64/arch-elf.hh +++ b/arch/aarch64/arch-elf.hh @@ -52,6 +52,7 @@ inline void run_entry_point(void* ep, int argc, char** argv, int argv_size) //Set stack pointer and jump to the ELF entry point asm volatile ( "mov sp, %1\n\t" //set stack + "mov x0, #0\n\t" //set atexit pointer "blr %0\n\t" : : "r"(ep), "r"(stack)); -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000008b2b36060d269c87%40google.com.
