semc: added 2G_VM_SPLIT support on linker
added TARGET_USES_2G_VM_SPLIT in linker.without this semc devices segfaulting.
Change-Id: Ie27513668713b1b70cd07ad6d7f3be587af75074
diff --git a/linker/Android.mk b/linker/Android.mk
index 60f291c..9290594 100644
--- a/linker/Android.mk
+++ b/linker/Android.mk
@@ -10,16 +10,16 @@
dlfcn.c \
debugger.c
-ifeq ($(TARGET_ARCH),sh)
-# SH-4A series virtual address range from 0x00000000 to 0x7FFFFFFF.
-LINKER_TEXT_BASE := 0x70000100
-else
+ifneq ($(TARGET_USES_2G_VM_SPLIT),true)
# This is aligned to 4K page boundary so that both GNU ld and gold work. Gold
# actually produces a correct binary with starting address 0xB0000100 but the
# extra objcopy step to rename symbols causes the resulting binary to be misaligned
# and unloadable. Increasing the alignment adds an extra 3840 bytes in padding
# but switching to gold saves about 1M of space.
LINKER_TEXT_BASE := 0xB0001000
+else
+LINKER_TEXT_BASE := 0x70001000
+LOCAL_CFLAGS += -DVM_SPLIT_2G
endif
# The maximum size set aside for the linker, from