[app] add the app module init system
diff --git a/arch/arm/system-onesegment.ld b/arch/arm/system-onesegment.ld
index 643ecbd..9f0e7fc 100644
--- a/arch/arm/system-onesegment.ld
+++ b/arch/arm/system-onesegment.ld
@@ -42,6 +42,10 @@
__commands_start = .;
KEEP (*(.commands))
__commands_end = .;
+ . = ALIGN(4);
+ __apps_start = .;
+ KEEP (*(.apps))
+ __apps_end = .;
. = ALIGN(4);
__rodata_end = . ;
}
diff --git a/arch/arm/system-twosegment.ld b/arch/arm/system-twosegment.ld
index 748d565..3a1c04c 100644
--- a/arch/arm/system-twosegment.ld
+++ b/arch/arm/system-twosegment.ld
@@ -42,6 +42,10 @@
__commands_start = .;
KEEP (*(.commands))
__commands_end = .;
+ . = ALIGN(4);
+ __apps_start = .;
+ KEEP (*(.apps))
+ __apps_end = .;
. = ALIGN(4);
__rodata_end = . ;
}