2009-05-15 10:36:04 +00:00
|
|
|
--- a/Documentation/Configure.help
|
|
|
|
+++ b/Documentation/Configure.help
|
2009-05-28 15:55:54 +00:00
|
|
|
@@ -4701,6 +4701,12 @@ CONFIG_BINFMT_ELF
|
2008-01-06 19:28:07 +00:00
|
|
|
ld.so (check the file <file:Documentation/Changes> for location and
|
|
|
|
latest version).
|
2005-04-26 02:58:26 +00:00
|
|
|
|
|
|
|
+ELF binaries with a.out format interpreters or a.out libraries
|
|
|
|
+CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+ The kernel may support ELF executables which use an a.out format
|
|
|
|
+ interpreter (dynamic linker) and/or a.out shared libraries, in
|
|
|
|
+ addition to the usual ELF-ELF setups. You shouldn't need this.
|
|
|
|
+
|
|
|
|
Kernel support for a.out binaries
|
|
|
|
CONFIG_BINFMT_AOUT
|
|
|
|
A.out (Assembler.OUTput) is a set of formats for libraries and
|
2009-05-28 15:55:54 +00:00
|
|
|
@@ -4714,13 +4720,11 @@ CONFIG_BINFMT_AOUT
|
2005-04-26 02:58:26 +00:00
|
|
|
warrant removing support. However its removal is a good idea if you
|
|
|
|
wish to ensure that absolutely none of your programs will use this
|
|
|
|
older executable format. If you don't know what to answer at this
|
|
|
|
- point then answer Y. If someone told you "You need a kernel with
|
|
|
|
+ point then answer N. If someone told you "You need a kernel with
|
|
|
|
QMAGIC support" then you'll have to say Y here. You may answer M to
|
|
|
|
compile a.out support as a module and later load the module when you
|
|
|
|
want to use a program or library in a.out format. The module will be
|
|
|
|
- called binfmt_aout.o. Saying M or N here is dangerous though,
|
|
|
|
- because some crucial programs on your system might still be in A.OUT
|
|
|
|
- format.
|
|
|
|
+ called binfmt_aout.o.
|
|
|
|
|
|
|
|
OSF/1 v4 readv/writev compatibility
|
|
|
|
CONFIG_OSF4_COMPAT
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/alpha/config.in
|
|
|
|
+++ b/arch/alpha/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -315,6 +315,9 @@ if [ "$CONFIG_BINFMT_AOUT" != "n" ]; the
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
tristate 'Kernel support for Linux/Intel ELF binaries' CONFIG_BINFMT_EM86
|
|
|
|
source drivers/parport/Config.in
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/alpha/defconfig
|
|
|
|
+++ b/arch/alpha/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -72,6 +72,7 @@ CONFIG_KCORE_ELF=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_BINFMT_EM86 is not set
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/arm/config.in
|
|
|
|
+++ b/arch/arm/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -499,6 +499,9 @@ choice 'Kernel core (/proc/kcore) format
|
2005-04-26 02:58:26 +00:00
|
|
|
A.OUT CONFIG_KCORE_AOUT" ELF
|
|
|
|
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
dep_bool 'Power Management support (experimental)' CONFIG_PM $CONFIG_EXPERIMENTAL
|
|
|
|
dep_tristate 'RISC OS personality' CONFIG_ARTHUR $CONFIG_CPU_32
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/arm/defconfig
|
|
|
|
+++ b/arch/arm/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -83,8 +83,9 @@ CONFIG_SYSCTL=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_NWFPE=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
-CONFIG_BINFMT_AOUT=y
|
|
|
|
+# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_PM is not set
|
|
|
|
# CONFIG_ARTHUR is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/cris/config.in
|
|
|
|
+++ b/arch/cris/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -31,6 +31,9 @@ bool 'BSD Process Accounting' CONFIG_BSD
|
2005-04-26 02:58:26 +00:00
|
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
|
|
|
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
|
|
|
|
string 'Kernel command line' CONFIG_ETRAX_CMDLINE "root=/dev/mtdblock3"
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/cris/defconfig
|
|
|
|
+++ b/arch/cris/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -18,6 +18,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
|
|
|
# CONFIG_SYSCTL is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_ETRAX_KGDB is not set
|
|
|
|
# CONFIG_ETRAX_WATCHDOG is not set
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/i386/config.in
|
|
|
|
+++ b/arch/i386/config.in
|
2009-05-28 15:55:54 +00:00
|
|
|
@@ -345,6 +345,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/i386/defconfig
|
|
|
|
+++ b/arch/i386/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -115,9 +115,10 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
-CONFIG_BINFMT_AOUT=y
|
|
|
|
+# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
-CONFIG_BINFMT_MISC=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
+# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_OOM_KILLER is not set
|
|
|
|
CONFIG_PM=y
|
|
|
|
# CONFIG_APM is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ia64/config.in
|
|
|
|
+++ b/arch/ia64/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -124,6 +124,9 @@ bool 'System V IPC' CONFIG_SYSVIPC
|
2005-04-26 02:58:26 +00:00
|
|
|
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
|
|
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
|
|
|
|
if [ "$CONFIG_IA64_HP_SIM" = "n" ]; then
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ia64/defconfig
|
|
|
|
+++ b/arch/ia64/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -60,6 +60,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
CONFIG_ACPI=y
|
|
|
|
CONFIG_ACPI_EFI=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/m68k/config.in
|
|
|
|
+++ b/arch/m68k/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -99,6 +99,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
|
|
|
|
if [ "$CONFIG_AMIGA" = "y" ]; then
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/m68k/defconfig
|
|
|
|
+++ b/arch/m68k/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -44,8 +44,9 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
-CONFIG_BINFMT_AOUT=y
|
|
|
|
+# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
CONFIG_ZORRO=y
|
|
|
|
# CONFIG_AMIGA_PCMCIA is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/mips/config-shared.in
|
|
|
|
+++ b/arch/mips/config-shared.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -873,6 +873,9 @@ define_bool CONFIG_KCORE_ELF y
|
2005-04-26 02:58:26 +00:00
|
|
|
define_bool CONFIG_KCORE_AOUT n
|
|
|
|
define_bool CONFIG_BINFMT_AOUT n
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
dep_bool 'Kernel support for Linux/MIPS 32-bit binary compatibility' CONFIG_MIPS32_COMPAT $CONFIG_MIPS64
|
|
|
|
dep_bool 'Kernel support for o32 binaries' CONFIG_MIPS32_O32 $CONFIG_MIPS32_COMPAT
|
|
|
|
dep_bool 'Kernel support for n32 binaries' CONFIG_MIPS32_N32 $CONFIG_MIPS32_COMPAT
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/mips/defconfig
|
|
|
|
+++ b/arch/mips/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -143,6 +143,7 @@ CONFIG_KCORE_ELF=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_MIPS32_COMPAT is not set
|
|
|
|
# CONFIG_MIPS32_O32 is not set
|
|
|
|
# CONFIG_MIPS32_N32 is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/mips/kernel/irixelf.c
|
|
|
|
+++ b/arch/mips/kernel/irixelf.c
|
2005-04-26 02:58:26 +00:00
|
|
|
@@ -8,6 +8,7 @@
|
|
|
|
* Copyright 1993, 1994: Eric Youngdale (ericy@cais.com).
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <linux/config.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
|
|
|
|
#include <linux/fs.h>
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -48,7 +49,12 @@ static int irix_core_dump(long signr, st
|
2005-04-26 02:58:26 +00:00
|
|
|
extern int dump_fpu (elf_fpregset_t *);
|
|
|
|
|
|
|
|
static struct linux_binfmt irix_format = {
|
|
|
|
- NULL, THIS_MODULE, load_irix_binary, load_irix_library,
|
|
|
|
+ NULL, THIS_MODULE, load_irix_binary,
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+ load_irix_library,
|
|
|
|
+#else
|
|
|
|
+ NULL,
|
|
|
|
+#endif
|
|
|
|
irix_core_dump, PAGE_SIZE
|
|
|
|
};
|
|
|
|
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -794,6 +800,7 @@ out_free_ph:
|
2005-04-26 02:58:26 +00:00
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
/* This is really simpleminded and specialized - we are loading an
|
|
|
|
* a.out library that is given an ELF header.
|
|
|
|
*/
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -873,6 +880,7 @@ static int load_irix_library(struct file
|
2005-04-26 02:58:26 +00:00
|
|
|
kfree(elf_phdata);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Called through irix_syssgi() to map an elf image given an FD,
|
|
|
|
* a phdr ptr USER_PHDRP in userspace, and a count CNT telling how many
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/mips64/defconfig
|
|
|
|
+++ b/arch/mips64/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -147,6 +147,7 @@ CONFIG_KCORE_ELF=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
CONFIG_MIPS32_COMPAT=y
|
|
|
|
CONFIG_MIPS32_O32=y
|
|
|
|
# CONFIG_MIPS32_N32 is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/parisc/config.in
|
|
|
|
+++ b/arch/parisc/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -89,6 +89,9 @@ bool 'BSD Process Accounting' CONFIG_BSD
|
2005-04-26 02:58:26 +00:00
|
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
|
|
|
define_bool CONFIG_KCORE_ELF y
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for SOM binaries' CONFIG_BINFMT_SOM
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/parisc/defconfig
|
|
|
|
+++ b/arch/parisc/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -56,6 +56,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
CONFIG_BINFMT_SOM=y
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_PM is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ppc/config.in
|
|
|
|
+++ b/arch/ppc/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -384,6 +384,7 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
define_bool CONFIG_BINFMT_ELF y
|
|
|
|
define_bool CONFIG_KERNEL_ELF y
|
|
|
|
+bool 'ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ppc/defconfig
|
|
|
|
+++ b/arch/ppc/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -59,7 +59,8 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
CONFIG_KERNEL_ELF=y
|
|
|
|
-CONFIG_BINFMT_MISC=m
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
+# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_OOM_KILLER is not set
|
|
|
|
CONFIG_PCI_NAMES=y
|
|
|
|
CONFIG_HOTPLUG=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ppc64/config.in
|
|
|
|
+++ b/arch/ppc64/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -82,6 +82,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
bool 'Kernel support for 64 bit ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
|
|
|
|
tristate 'Kernel support for 32 bit ELF binaries' CONFIG_BINFMT_ELF32
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/ppc64/defconfig
|
|
|
|
+++ b/arch/ppc64/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -56,6 +56,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF32=y
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
CONFIG_PCI_NAMES=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/s390/config.in
|
|
|
|
+++ b/arch/s390/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -58,6 +58,9 @@ bool 'BSD Process Accounting' CONFIG_BSD
|
2005-04-26 02:58:26 +00:00
|
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
|
|
|
define_bool CONFIG_KCORE_ELF y
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'Show crashed user process info' CONFIG_PROCESS_DEBUG
|
|
|
|
bool 'Pseudo page fault support' CONFIG_PFAULT
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/s390/defconfig
|
|
|
|
+++ b/arch/s390/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -46,6 +46,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_PROCESS_DEBUG is not set
|
|
|
|
CONFIG_PFAULT=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/s390x/config.in
|
|
|
|
+++ b/arch/s390x/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -61,6 +61,9 @@ bool 'BSD Process Accounting' CONFIG_BSD
|
2005-04-26 02:58:26 +00:00
|
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
|
|
|
define_bool CONFIG_KCORE_ELF y
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'Show crashed user process info' CONFIG_PROCESS_DEBUG
|
|
|
|
bool 'Pseudo page fault support' CONFIG_PFAULT
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/s390x/defconfig
|
|
|
|
+++ b/arch/s390x/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -47,6 +47,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_PROCESS_DEBUG is not set
|
|
|
|
CONFIG_PFAULT=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sh/config.in
|
|
|
|
+++ b/arch/sh/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -283,6 +283,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
A.OUT CONFIG_KCORE_AOUT" ELF
|
|
|
|
fi
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
|
|
|
|
bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sh/defconfig
|
|
|
|
+++ b/arch/sh/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -48,6 +48,7 @@ CONFIG_CF_ENABLER=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
# CONFIG_KCORE_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
|
|
|
|
#
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sparc/config.in
|
|
|
|
+++ b/arch/sparc/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -74,6 +74,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'SunOS binary emulation' CONFIG_SUNOS_EMUL
|
|
|
|
bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sparc/defconfig
|
|
|
|
+++ b/arch/sparc/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -49,9 +49,10 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
-CONFIG_BINFMT_AOUT=y
|
|
|
|
+# CONFIG_BINFMT_AOUT is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
-CONFIG_BINFMT_MISC=m
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
+# CONFIG_BINFMT_MISC is not set
|
|
|
|
CONFIG_SUNOS_EMUL=y
|
|
|
|
# CONFIG_OOM_KILLER is not set
|
|
|
|
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sparc64/config.in
|
|
|
|
+++ b/arch/sparc64/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -79,6 +79,9 @@ if [ "$CONFIG_SPARC32_COMPAT" != "n" ];
|
2005-04-26 02:58:26 +00:00
|
|
|
bool ' Kernel support for 32-bit (ie. SunOS) a.out binaries' CONFIG_BINFMT_AOUT32
|
|
|
|
fi
|
|
|
|
bool 'Kernel support for 64-bit ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
bool 'SunOS binary emulation' CONFIG_SUNOS_EMUL
|
|
|
|
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/sparc64/defconfig
|
|
|
|
+++ b/arch/sparc64/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -70,7 +70,8 @@ CONFIG_SPARC32_COMPAT=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_BINFMT_ELF32=y
|
|
|
|
# CONFIG_BINFMT_AOUT32 is not set
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
-CONFIG_BINFMT_MISC=m
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
+# CONFIG_BINFMT_MISC is not set
|
|
|
|
# CONFIG_SUNOS_EMUL is not set
|
|
|
|
CONFIG_SOLARIS_EMUL=m
|
|
|
|
# CONFIG_OOM_KILLER is not set
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/x86_64/config.in
|
|
|
|
+++ b/arch/x86_64/config.in
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -118,6 +118,9 @@ if [ "$CONFIG_PROC_FS" = "y" ]; then
|
2005-04-26 02:58:26 +00:00
|
|
|
fi
|
|
|
|
#tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
|
|
|
|
bool 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
|
|
|
+if [ "$CONFIG_BINFMT_ELF" != "n" ]; then
|
|
|
|
+ bool ' ELF binaries with a.out format interpreters or a.out libraries' CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+fi
|
|
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
|
|
|
|
|
|
|
bool 'Power Management support' CONFIG_PM
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/arch/x86_64/defconfig
|
|
|
|
+++ b/arch/x86_64/defconfig
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -67,6 +67,7 @@ CONFIG_SYSVIPC=y
|
2005-04-26 02:58:26 +00:00
|
|
|
CONFIG_SYSCTL=y
|
|
|
|
CONFIG_KCORE_ELF=y
|
|
|
|
CONFIG_BINFMT_ELF=y
|
|
|
|
+# CONFIG_BINFMT_ELF_AOUT is not set
|
|
|
|
# CONFIG_BINFMT_MISC is not set
|
|
|
|
CONFIG_PM=y
|
|
|
|
CONFIG_IA32_EMULATION=y
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/fs/binfmt_elf.c
|
|
|
|
+++ b/fs/binfmt_elf.c
|
2005-04-26 02:58:26 +00:00
|
|
|
@@ -9,6 +9,7 @@
|
|
|
|
* Copyright 1993, 1994: Eric Youngdale (ericy@cais.com).
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <linux/config.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
|
|
|
|
#include <linux/fs.h>
|
|
|
|
@@ -43,7 +44,9 @@
|
|
|
|
#include <linux/elf.h>
|
|
|
|
|
|
|
|
static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs);
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
static int load_elf_library(struct file*);
|
|
|
|
+#endif
|
|
|
|
static unsigned long elf_map (struct file *, unsigned long, struct elf_phdr *, int, int);
|
|
|
|
extern int dump_fpu (struct pt_regs *, elf_fpregset_t *);
|
|
|
|
extern void dump_thread(struct pt_regs *, struct user *);
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -74,7 +77,13 @@ static int elf_core_dump(long signr, str
|
2005-04-26 02:58:26 +00:00
|
|
|
#define ELF_PAGEALIGN(_v) (((_v) + ELF_MIN_ALIGN - 1) & ~(ELF_MIN_ALIGN - 1))
|
|
|
|
|
2008-01-06 19:28:07 +00:00
|
|
|
static struct linux_binfmt elf_format = {
|
2005-04-26 02:58:26 +00:00
|
|
|
- NULL, THIS_MODULE, load_elf_binary, load_elf_library, elf_core_dump, ELF_EXEC_PAGESIZE
|
|
|
|
+ NULL, THIS_MODULE, load_elf_binary,
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
+ load_elf_library,
|
|
|
|
+#else
|
|
|
|
+ NULL,
|
|
|
|
+#endif
|
|
|
|
+ elf_core_dump, ELF_EXEC_PAGESIZE
|
|
|
|
};
|
|
|
|
|
2008-01-06 19:28:07 +00:00
|
|
|
#define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -404,6 +413,7 @@ out:
|
2005-04-26 02:58:26 +00:00
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
static unsigned long load_aout_interp(struct exec * interp_ex,
|
|
|
|
struct file * interpreter)
|
|
|
|
{
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -451,6 +461,7 @@ static unsigned long load_aout_interp(st
|
2005-04-26 02:58:26 +00:00
|
|
|
out:
|
|
|
|
return elf_entry;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These are the functions used to load ELF style executables and shared
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -458,7 +469,9 @@ out:
|
2005-04-26 02:58:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define INTERPRETER_NONE 0
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
#define INTERPRETER_AOUT 1
|
|
|
|
+#endif
|
|
|
|
#define INTERPRETER_ELF 2
|
|
|
|
|
|
|
|
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -482,7 +495,9 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
struct elfhdr elf_ex;
|
|
|
|
struct elfhdr interp_elf_ex;
|
|
|
|
struct exec interp_ex;
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
char passed_fileno[6];
|
|
|
|
+#endif
|
|
|
|
struct files_struct *files;
|
|
|
|
|
|
|
|
/* Get the exec-header */
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -612,6 +627,7 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
|
|
|
|
/* Some simple consistency checks for the interpreter */
|
|
|
|
if (elf_interpreter) {
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
interpreter_type = INTERPRETER_ELF | INTERPRETER_AOUT;
|
|
|
|
|
|
|
|
/* Now figure out which format our binary is */
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -619,6 +635,9 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
(N_MAGIC(interp_ex) != ZMAGIC) &&
|
|
|
|
(N_MAGIC(interp_ex) != QMAGIC))
|
|
|
|
interpreter_type = INTERPRETER_ELF;
|
|
|
|
+#else
|
|
|
|
+ interpreter_type = INTERPRETER_ELF;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
if (memcmp(interp_elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
|
|
|
|
interpreter_type &= ~INTERPRETER_ELF;
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -627,6 +646,7 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
if (!interpreter_type)
|
|
|
|
goto out_free_dentry;
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
/* Make sure only one type was selected */
|
|
|
|
if ((interpreter_type & INTERPRETER_ELF) &&
|
|
|
|
interpreter_type != INTERPRETER_ELF) {
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -634,6 +654,7 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
// printk(KERN_WARNING "ELF: Ambiguous type, using ELF\n");
|
|
|
|
interpreter_type = INTERPRETER_ELF;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
/* Verify the interpreter has a valid arch */
|
|
|
|
if ((interpreter_type == INTERPRETER_ELF) &&
|
|
|
|
!elf_check_arch(&interp_elf_ex))
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -651,6 +672,7 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
/* OK, we are done with that, now set up the arg stuff,
|
|
|
|
and then start this sucker up */
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
if (!bprm->sh_bang) {
|
|
|
|
char * passed_p;
|
|
|
|
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -669,6 +691,7 @@ static int load_elf_binary(struct linux_
|
2008-01-06 19:28:07 +00:00
|
|
|
/* Executables without an interpreter also need a personality */
|
|
|
|
SET_PERSONALITY(elf_ex, ibcs2_interpreter);
|
2005-04-26 02:58:26 +00:00
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Flush all traces of the currently running executable */
|
|
|
|
retval = flush_old_exec(bprm);
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -817,10 +840,12 @@ static int load_elf_binary(struct linux_
|
2008-01-06 19:28:07 +00:00
|
|
|
padzero(elf_bss);
|
2005-04-26 02:58:26 +00:00
|
|
|
|
|
|
|
if (elf_interpreter) {
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
if (interpreter_type == INTERPRETER_AOUT)
|
|
|
|
elf_entry = load_aout_interp(&interp_ex,
|
|
|
|
interpreter);
|
|
|
|
else
|
|
|
|
+#endif
|
|
|
|
elf_entry = load_elf_interp(&interp_elf_ex,
|
|
|
|
interpreter,
|
|
|
|
&interp_load_addr);
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -849,7 +874,9 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
|
|
|
|
kfree(elf_phdata);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
if (interpreter_type != INTERPRETER_AOUT)
|
|
|
|
+#endif
|
|
|
|
sys_close(elf_exec_fileno);
|
|
|
|
|
|
|
|
set_binfmt(&elf_format);
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -863,10 +890,14 @@ static int load_elf_binary(struct linux_
|
2005-04-26 02:58:26 +00:00
|
|
|
&elf_ex,
|
|
|
|
load_addr, load_bias,
|
|
|
|
interp_load_addr,
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
(interpreter_type == INTERPRETER_AOUT ? 0 : 1));
|
|
|
|
/* N.B. passed_fileno might not be initialized? */
|
|
|
|
if (interpreter_type == INTERPRETER_AOUT)
|
|
|
|
current->mm->arg_start += strlen(passed_fileno) + 1;
|
|
|
|
+#else
|
|
|
|
+ 1);
|
|
|
|
+#endif
|
|
|
|
current->mm->start_brk = current->mm->brk = elf_brk;
|
|
|
|
current->mm->end_code = end_code;
|
|
|
|
current->mm->start_code = start_code;
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -937,9 +968,9 @@ out_free_ph:
|
2005-04-26 02:58:26 +00:00
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BINFMT_ELF_AOUT
|
|
|
|
/* 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)
|
|
|
|
{
|
|
|
|
struct elf_phdr *elf_phdata;
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -1016,6 +1047,7 @@ out_free_ph:
|
2005-04-26 02:58:26 +00:00
|
|
|
out:
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Note that some platforms still use traditional core dumps and not
|
2009-05-15 10:36:04 +00:00
|
|
|
--- a/fs/exec.c
|
|
|
|
+++ b/fs/exec.c
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -109,6 +109,7 @@ static inline void put_binfmt(struct lin
|
2005-04-26 02:58:26 +00:00
|
|
|
*/
|
|
|
|
asmlinkage long sys_uselib(const char * library)
|
|
|
|
{
|
|
|
|
+#if defined(CONFIG_BINFMT_AOUT) || defined(CONFIG_BINFMT_ELF_AOUT)
|
|
|
|
struct file * file;
|
|
|
|
struct nameidata nd;
|
|
|
|
int error;
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -155,6 +156,9 @@ out:
|
2005-04-26 02:58:26 +00:00
|
|
|
exit:
|
|
|
|
path_release(&nd);
|
|
|
|
goto out;
|
|
|
|
+#else
|
|
|
|
+ return -ENOSYS;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|