|
@@ -46,10 +46,15 @@
|
|
|
#endif
|
|
|
|
|
|
static int load_elf_binary(struct linux_binprm *bprm);
|
|
|
-static int load_elf_library(struct file *);
|
|
|
static unsigned long elf_map(struct file *, unsigned long, struct elf_phdr *,
|
|
|
int, int, unsigned long);
|
|
|
|
|
|
+#ifdef CONFIG_USELIB
|
|
|
+static int load_elf_library(struct file *);
|
|
|
+#else
|
|
|
+#define load_elf_library NULL
|
|
|
+#endif
|
|
|
+
|
|
|
/*
|
|
|
* If we don't support core dumping, then supply a NULL so we
|
|
|
* don't even try.
|
|
@@ -1005,6 +1010,7 @@ out_free_ph:
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_USELIB
|
|
|
/* This is really simpleminded and specialized - we are loading an
|
|
|
a.out library that is given an ELF header. */
|
|
|
static int load_elf_library(struct file *file)
|
|
@@ -1083,6 +1089,7 @@ out_free_ph:
|
|
|
out:
|
|
|
return error;
|
|
|
}
|
|
|
+#endif /* #ifdef CONFIG_USELIB */
|
|
|
|
|
|
#ifdef CONFIG_ELF_CORE
|
|
|
/*
|