aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/test_com32.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/elflink/test_com32.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/elflink/test_com32.c')
-rw-r--r--com32/elflink/test_com32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/elflink/test_com32.c b/com32/elflink/test_com32.c
index 115bba87..20c19cf7 100644
--- a/com32/elflink/test_com32.c
+++ b/com32/elflink/test_com32.c
@@ -8,6 +8,8 @@
#define INFO_PRINT(fmt, args...) printf("[COM32] " fmt, ##args)
+#define COM32_OFFSET 0x110000
+
#define MAX_COMMAND_SIZE 80 // Maximum size of the cmd line
#define COMMAND_DELIM " \t\n" // Whitespace delimiters
#define MAX_COMMAND_ARGS (MAX_COMMAND_SIZE/2) // Maximum argument count for
@@ -179,7 +181,7 @@ int main(int argc, char **argv) {
// Open a standard r/w console
openconsole(&dev_stdcon_r, &dev_stdcon_w);
- res = exec_init();
+ res = exec_init(COM32_OFFSET);
if (res != 0) {
printf("Failed to initialize the execution environment.\n");
return res;