Index: uspace/lib/c/generic/elf/elf_load.c
===================================================================
--- uspace/lib/c/generic/elf/elf_load.c	(revision bdca26a0f1af74aa02df60e75d1e9a51266872ef)
+++ uspace/lib/c/generic/elf/elf_load.c	(revision 31ea2a7b402ca14939caa6c5f580a5c7f3e3a190)
@@ -57,8 +57,5 @@
 errno_t elf_load(int file, elf_info_t *info)
 {
-#ifdef CONFIG_RTLD
-	rtld_t *env;
-#endif
-	errno_t rc;
+	errno_t rc = EOK;
 
 	rc = elf_load_file(file, 0, &info->finfo);
@@ -68,15 +65,6 @@
 	}
 
-	if (info->finfo.dynamic == NULL) {
-		/* Statically linked program */
-		DPRINTF("Binary is statically linked.\n");
-		info->env = NULL;
-		return EOK;
-	}
-
-	DPRINTF("Binary is dynamically linked.\n");
 #ifdef CONFIG_RTLD
-	DPRINTF("- prog dynamic: %p\n", info->finfo.dynamic);
-
+	rtld_t *env;
 	rc = rtld_prog_process(&info->finfo, &env);
 	info->env = env;
