aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-07-03 09:34:03 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-07-03 09:44:35 +0100
commit316f9636e3958ada609d506deca8db3aef395e54 (patch)
tree1aaf9bb9a89b2a9cfdbb77aa526b92bac258bf7a /com32/elflink/ldlinux
parent5f17528b5ff4e35911794d20759f5a72f0f4f3bd (diff)
downloadsyslinux-316f9636e3958ada609d506deca8db3aef395e54.tar.gz
syslinux-316f9636e3958ada609d506deca8db3aef395e54.tar.xz
syslinux-316f9636e3958ada609d506deca8db3aef395e54.zip
menu: Supply the command type to execute()
The old execute() was much more forgiving when passing a COM32 module as KT_NONE, as the old code for loading a kernel could also handle COM32 modules. This isn't the case with new_linux_kernel(), and COM32 modules really need to take the create_args_and_load() path in execute(). Without this change loading .c32 files from vesamenu.c32/menu.c32 fails. Reported-by: Helmut Hullen <Hullen@t-online.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux')
-rw-r--r--com32/elflink/ldlinux/ldlinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c
index 4ad5eb85..f56f2c06 100644
--- a/com32/elflink/ldlinux/ldlinux.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -45,7 +45,7 @@ static inline const char *find_command(const char *str)
return p;
}
-static enum kernel_type parse_kernel_type(const char *kernel)
+enum kernel_type parse_kernel_type(const char *kernel)
{
const struct file_ext *ext;
const char *p;