diff --git a/examples/module/Kconfig b/examples/module/Kconfig
index d2b192dff..f59e34280 100644
--- a/examples/module/Kconfig
+++ b/examples/module/Kconfig
@@ -6,11 +6,15 @@
 config EXAMPLES_MODULE
 	bool "Module Example"
 	default n
-	depends on MODULE && LIB_BOARDCTL
+	depends on MODULE && LIB_BOARDCTL && BUILD_FLAT
 	select BOARDCTL_OS_SYMTAB
 	---help---
 		Enable the module example
 
+		NOTE: This example can only be used in the FLAT build mode because
+		it makes illegal OS calls to ramdisk_register(), register_device(),
+		and unregister_device().
+
 if EXAMPLES_MODULE
 
 config EXAMPLES_MODULE_LIBC
diff --git a/examples/sotest/Kconfig b/examples/sotest/Kconfig
index 14b578e81..e69c152a2 100644
--- a/examples/sotest/Kconfig
+++ b/examples/sotest/Kconfig
@@ -6,10 +6,13 @@
 config EXAMPLES_SOTEST
 	bool "Shared Library Example"
 	default n
-	depends on LIBC_DLLFCN
+	depends on LIBC_DLLFCN && BUILD_FLAT
 	---help---
 		Enable the shared library example
 
+		NOTE: This example can only be used in the FLAT build mode because
+		it makes an illegal OS call to ramdisk_register().
+
 if EXAMPLES_SOTEST
 
 config EXAMPLES_SOTEST_LIBC