__on_dlclose should be aligned
Marking segments read-only was pushing the alignment of __on_dlclose by
2 bytes making it unaligned. This change makes sure the ARM code is
aligned to the 4 byte boundary.
Bug: 6313309
Change-Id: Ic2bf475e120dd61225ec19e5d8a9a8b1d0b7f081
diff --git a/libc/Android.mk b/libc/Android.mk
index 5e41741..885fb93 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -514,8 +514,9 @@
# Needed to access private/__dso_handle.S from
# crtbegin_xxx.S and crtend_xxx.S
+# and machine/asm.h
#
-libc_crt_target_cflags += -I$(LOCAL_PATH)/private
+libc_crt_target_cflags += -I$(LOCAL_PATH)/private -I$(LOCAL_PATH)/arch-$(TARGET_ARCH)/include
# Define the libc run-time (crt) support object files that must be built,
# which are needed to build all other objects (shared/static libs and