aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/module/exec.c
diff options
context:
space:
mode:
authorStefan Bucur <stefan@stefan-mac.(none)>2009-07-04 19:47:29 +0300
committerStefan Bucur <stefan@stefan-mac.(none)>2009-07-04 19:47:29 +0300
commit2ab2c16e359d266719ce8639ca0fa057d0f7a099 (patch)
treea3907756a1b2ed01e630ddbf114929d72ebd2631 /com32/lib/sys/module/exec.c
parentc9d910a68845661946d1e040faaa4f46076fd64f (diff)
downloadsyslinux-elf-2ab2c16e359d266719ce8639ca0fa057d0f7a099.tar.gz
syslinux-elf-2ab2c16e359d266719ce8639ca0fa057d0f7a099.tar.xz
syslinux-elf-2ab2c16e359d266719ce8639ca0fa057d0f7a099.zip
Added support in shallow modules to offset symbols.
The symbol values can be offset so that they could match a memory region, in case it is created dynamically and the symbol table does not include the offsets.
Diffstat (limited to 'com32/lib/sys/module/exec.c')
-rw-r--r--com32/lib/sys/module/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/module/exec.c b/com32/lib/sys/module/exec.c
index 3cd53187..9da1d572 100644
--- a/com32/lib/sys/module/exec.c
+++ b/com32/lib/sys/module/exec.c
@@ -30,7 +30,7 @@ static char *module_get_fullname(const char *name) {
return name_buff;
}
-int exec_init() {
+int exec_init(size_t root_addr) {
int res;
res = modules_init();
@@ -44,7 +44,7 @@ int exec_init() {
if (mod_root == NULL)
return -1;
- res = module_load_shallow(mod_root);
+ res = module_load_shallow(mod_root, root_addr);
if (res != 0) {
mod_root = NULL;