From 928bf3f29d7a8b2163a3c1d5c15554d5b42c606b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 1 Aug 2020 17:30:42 +0200 Subject: Some entry position optimizations --- src/features/load.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/features') diff --git a/src/features/load.c b/src/features/load.c index 47beb9b..958acd7 100644 --- a/src/features/load.c +++ b/src/features/load.c @@ -1,3 +1,5 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + #include #include #include @@ -8,7 +10,7 @@ void bin_load(char *path) char *data = read_file(path); void (*entry)(); - *(void **)(&entry) = data + MAIN_OFFSET; + *(void **)(&entry) = data; entry(); } -- cgit v1.2.3