From 4f9a2c7a2d8464b04cc08075a7762c6d457090df Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 22 May 2024 14:04:36 +0200 Subject: WIP --- src/start.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/start.c') diff --git a/src/start.c b/src/start.c index c22bddf..e8bc730 100644 --- a/src/start.c +++ b/src/start.c @@ -56,7 +56,12 @@ int nw_start(const struct nw_inst_cfg *const icfg, struct nw_inst *const i) LOG("%s: section_type_push failed\n", __func__); goto end; } - else if (section_code_push(f, fn.start, &fr)) + else if (fseek(f, fn.start, SEEK_SET)) + { + LOG("%s: fseek(3): %s\n", __func__, strerror(errno)); + return -1; + } + else if (section_code_push(f, &fr)) { LOG("%s: section_code_push failed\n", __func__); goto end; -- cgit v1.2.3