x86_64: ensure that dtor pointer passed to app is 0 so it won't be used

leaving it uninitialized caused unpredictable crashes or worse due to
calling an indeterminate function pointer.
This commit is contained in:
Rich Felker 2011-06-19 08:33:27 -04:00
parent 596d60c565
commit 779165e6d4
1 changed files with 1 additions and 0 deletions

View File

@ -5,4 +5,5 @@ _start:
lea 8(%rsp),%rsi
lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx
call __dynlink
xor %edx,%edx
jmp *%rax