diff --git a/configs/pcblogic-pic32mx/ostest/ld.script b/configs/pcblogic-pic32mx/ostest/ld.script
index e888ef964f58b4bef50b8344ddced339eb4899f6..e639ba37cfef97181704113dbd98ed77c58f1132 100644
--- a/configs/pcblogic-pic32mx/ostest/ld.script
+++ b/configs/pcblogic-pic32mx/ostest/ld.script
@@ -194,7 +194,7 @@ SECTIONS
 	 */
 
 /* This causes failures if there are no RAM functions
-	.ramfunc :
+	.ramfunc ALIGN(2K) :
 	{
 		_sramfunc =  ABSOLUTE(.);
 		*(.ramfunc	.ramfunc.*)
@@ -208,11 +208,6 @@ SECTIONS
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
 */
 
-	.dbg_data (NOLOAD) :
-	{
-		. += (DEFINED (_DEBUGGER) ? 0x200 : 0x0);
-	} > kseg1_datamem
-
 	.data :
 	{
 		_sdata = ABSOLUTE(.);
diff --git a/configs/pic32-starterkit/ostest/ld.script b/configs/pic32-starterkit/ostest/ld.script
index aa888440c976b7af02fc297ad1b1bca99f179172..a7d55d8b3445b2ee490d932c16ca069ffbcbb86b 100644
--- a/configs/pic32-starterkit/ostest/ld.script
+++ b/configs/pic32-starterkit/ostest/ld.script
@@ -194,7 +194,7 @@ SECTIONS
 	 */
 
 /* This causes failures if there are no RAM functions
-	.ramfunc :
+	.ramfunc ALIGN(2K) :
 	{
 		_sramfunc =  ABSOLUTE(.);
 		*(.ramfunc	.ramfunc.*)
@@ -208,11 +208,6 @@ SECTIONS
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
 */
 
-	.dbg_data (NOLOAD) :
-	{
-		. += (DEFINED (_DEBUGGER) ? 0x200 : 0x0);
-	} > kseg1_datamem
-
 	.data :
 	{
 		_sdata = ABSOLUTE(.);
diff --git a/configs/sure-pic32mx/ostest/ld.script b/configs/sure-pic32mx/ostest/ld.script
index b23719c9f2ba5bc666b648565cff3636e8e58e5f..0af4bd1a8a741324a5f6321c5572f6ef0c4de654 100644
--- a/configs/sure-pic32mx/ostest/ld.script
+++ b/configs/sure-pic32mx/ostest/ld.script
@@ -194,7 +194,7 @@ SECTIONS
 	 */
 
 /* This causes failures if there are no RAM functions
-	.ramfunc :
+	.ramfunc ALIGN(2K) :
 	{
 		_sramfunc = ABSOLUTE(.);
 		*(.ramfunc .ramfunc.*)
@@ -208,11 +208,6 @@ SECTIONS
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
 */
 
-	.dbg_data (NOLOAD) :
-	{
-		. += (DEFINED (_DEBUGGER) ? 0x200 : 0x0);
-	} > kseg1_datamem
-
 	.data :
 	{
 		_sdata = ABSOLUTE(.);