ldlinux: Loading a config file should cause re-initialisation
authorMatt Fleming <matt.fleming@intel.com>
Tue, 13 Mar 2012 09:37:57 +0000 (09:37 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 23 Mar 2012 16:56:15 +0000 (16:56 +0000)
commit3a316db137afe3b4c9d7f04fcf47921f509ef36c
treea9dff7c812d2414ce52ce3f311132e5ad6b997a1
parent8e0ed96bff75801f7430da88d83ea1b52827b123
ldlinux: Loading a config file should cause re-initialisation

There are a number of initialisation steps that need to be performed
*every* time a config file is loaded. Reload ldlinux.c32 so that we
can re-initialise the environment whenever a new config file is
loaded. This involves unloading all the modules that have been loaded
since ldlinux.c32. Luckily the list of loaded modules is sorted by
load order, which means it's trivial to "pop" them from the front of
the list.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/execute.c
com32/elflink/ldlinux/ldlinux.c
com32/include/linux/list.h
com32/include/sys/module.h
com32/lib/sys/module/elf_module.c
core/elflink/config.c [deleted file]
core/elflink/load_env32.c