-/* $OpenBSD: ldasm.S,v 1.13 2013/08/13 05:52:18 guenther Exp $ */
+/* $OpenBSD: ldasm.S,v 1.14 2013/12/23 22:13:03 kettenis Exp $ */
/*
* Copyright (c) 2002,2004 Dale Rahn
addq $DL_DATA_SIZE,%rsp # return dl_data
-# popq %rbx # %rbx = ps_strings - XXXDSR
-# popq %rcx # %rcx = obj_main - XXXDSR
- movq $0, %rdx # %rdx = cleanup - XXXDSR
+ leaq _dl_dtors(%rip), %rdx # %rdx = cleanup
movq %r12, %rsp
jmp *%rax
-/* $OpenBSD: loader.c,v 1.139 2013/12/23 22:03:52 kettenis Exp $ */
+/* $OpenBSD: loader.c,v 1.140 2013/12/23 22:13:03 kettenis Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
_dl_call_init(_dl_objects);
}
-#if !defined(__alpha__) && !defined(__hppa__) && !defined(__i386__) && \
- !defined(__powerpc__) && !defined(__sparc64__)
+#if !defined(__alpha__) && !defined(__amd64__) && !defined(__hppa__) && \
+ !defined(__i386__) && !defined(__powerpc__) && !defined(__sparc64__)
/*
* Schedule a routine to be run at shutdown, by using atexit.
* Cannot call atexit directly from ld.so?