From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Waldemar Kozaczuk <jwkozac...@gmail.com> Branch: master
aarch64: clear atexit pointer before jumping to ELF entry point Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com> --- 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 osv-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000008b2b36060d269c87%40google.com.