elflink: Move more code from core/ into ldlinux
authorMatt Fleming <matt.fleming@linux.intel.com>
Fri, 8 Apr 2011 12:21:51 +0000 (13:21 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 26 Apr 2011 08:53:31 +0000 (09:53 +0100)
commit43d7cbaa55806ecb33b0cc5aa56e97b0f8027c45
treebfe0b4d22649c6e4859fe85cbe46063c4436b3b0
parent990e7e1df3dc6fa456ff7cdaec7d239977557c8d
elflink: Move more code from core/ into ldlinux

ldlinux now contains all the code necessary to load and execute
modules, none is contained in the core.

This change also allows us to change the spawn_load() prototype and to
push the job of processing arguments to executable functions (e.g. the
contents of char *argv[] as passed to a module's main function) into
ldlinux/execute.c instead of doing it in spawn_load(). Moving it into
ldlinux/ makes sense because the only core user of spawn_load() is
load_env32() and we don't require any sort of argument processing in
that path.

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
com32/elflink/ldlinux/Makefile
com32/elflink/ldlinux/execute.c [moved from core/elflink/execute.c with 73% similarity]
com32/elflink/ldlinux/kernel.c [moved from core/elflink/kernel.c with 100% similarity]
com32/include/sys/exec.h
com32/lib/sys/module/exec.c
core/elflink/load_env32.c