diff --git a/configs/pcblogic-pic32mx/ostest/defconfig b/configs/pcblogic-pic32mx/ostest/defconfig
index 4c796fa2ef457ef694c36fdf5b9af2fdeac18798..1f29f0e3230268da3e0bfa46d1d1445f28da073f 100644
--- a/configs/pcblogic-pic32mx/ostest/defconfig
+++ b/configs/pcblogic-pic32mx/ostest/defconfig
@@ -92,8 +92,9 @@ CONFIG_ARCH_DMA=n
 
 #
 # Enable support for RAM-based functions
+# (If selected, then modifications are needed in ld.script as well)
 #
-CONFIG_PIC32MX_RAMFUNCS=y
+CONFIG_PIC32MX_RAMFUNCS=n
 
 #
 # Identify toolchain and linker options
diff --git a/configs/pcblogic-pic32mx/ostest/ld.script b/configs/pcblogic-pic32mx/ostest/ld.script
index 139803c58bfc6c7ab2a23024c4ae3999d1da15c4..25df40f0a19e8ac330f0ddb7c54a72c5e5835c03 100644
--- a/configs/pcblogic-pic32mx/ostest/ld.script
+++ b/configs/pcblogic-pic32mx/ostest/ld.script
@@ -190,7 +190,8 @@ SECTIONS
 	 * they can be guaranteed to satisfy the 2Kb alignment requirement.
 	 */
 
-	.ramfunc ALIGN(2K) :
+/* This causes failures if there are no RAM functions
+	.ramfunc /* ALIGN(2K) */ :
 	{
 		_sramfunc =  ABSOLUTE(.);
 		*(.ramfunc	.ramfunc.*)
@@ -198,10 +199,11 @@ SECTIONS
 	} > kseg1_datamem AT > kseg0_progmem
 
 	_ramfunc_loadaddr = LOADADDR(.ramfunc);
-	_ramfunc_sizeof = SIZEOF(.ramfunc);
+	_ramfunc_sizeof   = SIZEOF(.ramfunc);
 	_bmxdkpba_address = _sramfunc - ORIGIN(kseg1_datamem) ;
 	_bmxdudba_address = LENGTH(kseg1_datamem) ;
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
+*/
 
 	.dbg_data (NOLOAD) :
 	{
diff --git a/configs/pic32-starterkit/ostest/defconfig b/configs/pic32-starterkit/ostest/defconfig
index 33e0d703d8337973b5b2e30abc3769a1db10af8f..64eaf5fe20bce2b99830b2cc09abf0ad93757d3c 100644
--- a/configs/pic32-starterkit/ostest/defconfig
+++ b/configs/pic32-starterkit/ostest/defconfig
@@ -92,8 +92,9 @@ CONFIG_ARCH_DMA=n
 
 #
 # Enable support for RAM-based functions
+# (If selected, then modifications are needed in ld.script as well)
 #
-CONFIG_PIC32MX_RAMFUNCS=y
+CONFIG_PIC32MX_RAMFUNCS=n
 
 #
 # Identify toolchain and linker options
diff --git a/configs/pic32-starterkit/ostest/ld.script b/configs/pic32-starterkit/ostest/ld.script
index c9e85d05955c0c7a48d044e788759ffbe61ce3bf..9bdd451753ccd479475811327373bd18f3941c3c 100644
--- a/configs/pic32-starterkit/ostest/ld.script
+++ b/configs/pic32-starterkit/ostest/ld.script
@@ -190,7 +190,8 @@ SECTIONS
 	 * they can be guaranteed to satisfy the 2Kb alignment requirement.
 	 */
 
-	.ramfunc ALIGN(2K) :
+/* This causes failures if there are no RAM functions
+	.ramfunc /* ALIGN(2K) */ :
 	{
 		_sramfunc =  ABSOLUTE(.);
 		*(.ramfunc	.ramfunc.*)
@@ -198,10 +199,11 @@ SECTIONS
 	} > kseg1_datamem AT > kseg0_progmem
 
 	_ramfunc_loadaddr = LOADADDR(.ramfunc);
-	_ramfunc_sizeof = SIZEOF(.ramfunc);
+	_ramfunc_sizeof   = SIZEOF(.ramfunc);
 	_bmxdkpba_address = _sramfunc - ORIGIN(kseg1_datamem) ;
 	_bmxdudba_address = LENGTH(kseg1_datamem) ;
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
+*/
 
 	.dbg_data (NOLOAD) :
 	{
diff --git a/configs/sure-pic32mx/ostest/defconfig b/configs/sure-pic32mx/ostest/defconfig
index ed37cc352a5134041fd5908eb480c30974200ce1..6ee48fd5fbba6b8b341e90b3194adacc896779e1 100644
--- a/configs/sure-pic32mx/ostest/defconfig
+++ b/configs/sure-pic32mx/ostest/defconfig
@@ -92,8 +92,9 @@ CONFIG_ARCH_DMA=n
 
 #
 # Enable support for RAM-based functions
+# (If selected, then modifications are needed in ld.script as well)
 #
-CONFIG_PIC32MX_RAMFUNCS=y
+CONFIG_PIC32MX_RAMFUNCS=n
 
 #
 # Identify toolchain and linker options
diff --git a/configs/sure-pic32mx/ostest/ld.script b/configs/sure-pic32mx/ostest/ld.script
index e1e5cc258a5fa2691a2a4cf5b3e4d1fdd79c73c9..2da162586f320625e43fb46f3be70369eb18f2cf 100644
--- a/configs/sure-pic32mx/ostest/ld.script
+++ b/configs/sure-pic32mx/ostest/ld.script
@@ -190,18 +190,20 @@ SECTIONS
 	 * they can be guaranteed to satisfy the 2Kb alignment requirement.
 	 */
 
-	.ramfunc ALIGN(2K) :
+/* This causes failures if there are no RAM functions
+	.ramfunc /* ALIGN(2K) */ :
 	{
-		_sramfunc =  ABSOLUTE(.);
-		*(.ramfunc	.ramfunc.*)
-		_eramfunc =  ABSOLUTE(.);
+		_sramfunc = ABSOLUTE(.);
+		*(.ramfunc .ramfunc.*)
+		_eramfunc = ABSOLUTE(.);
 	} > kseg1_datamem AT > kseg0_progmem
 
 	_ramfunc_loadaddr = LOADADDR(.ramfunc);
-	_ramfunc_sizeof = SIZEOF(.ramfunc);
+	_ramfunc_sizeof   = SIZEOF(.ramfunc);
 	_bmxdkpba_address = _sramfunc - ORIGIN(kseg1_datamem) ;
 	_bmxdudba_address = LENGTH(kseg1_datamem) ;
 	_bmxdupba_address = LENGTH(kseg1_datamem) ;
+*/
 
 	.dbg_data (NOLOAD) :
 	{