Move end of __on_dlclose up
The END macro was put too far down which made the linker complain about
it. Move up to the end of the code.
Change-Id: Ica71a9c6083b437d2213c7cefe34b0083c78f16b
diff --git a/libc/arch-arm/bionic/crtbegin_so.S b/libc/arch-arm/bionic/crtbegin_so.S
index a54ed0d..104d214 100644
--- a/libc/arch-arm/bionic/crtbegin_so.S
+++ b/libc/arch-arm/bionic/crtbegin_so.S
@@ -28,8 +28,6 @@
#include <machine/asm.h>
-ENTRY(__on_dlclose)
-
# Implement static C++ destructors when the shared
# library is unloaded through dlclose().
#
@@ -37,10 +35,11 @@
# in the .fini_array. See 3.3.5.3.C of C++ ABI
# standard.
#
-__on_dlclose:
+ENTRY(__on_dlclose)
adr r0, 0f
ldr r0, [r0]
b __cxa_finalize
+END(__on_dlclose)
0:
.long __dso_handle
@@ -56,8 +55,6 @@
.long -1
.long __on_dlclose
-END(__on_dlclose)
-
#ifdef CRT_LEGACY_WORKAROUND
#include "__dso_handle.S"
#else