summaryrefslogtreecommitdiff
path: root/lib/linker.c
diff options
context:
space:
mode:
authorPixel <>2001-04-16 21:44:42 +0000
committerPixel <>2001-04-16 21:44:42 +0000
commitcb850755d0ca7c625fe418ef6b9770876c3308f2 (patch)
tree78cd8a9305943d5779a39e4a1a140469a27dec1a /lib/linker.c
parent85155ff54ba94f8ac40e267f83435284e88b866c (diff)
Pouet
Diffstat (limited to 'lib/linker.c')
-rw-r--r--lib/linker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/linker.c b/lib/linker.c
index b6930e3..0228a9f 100644
--- a/lib/linker.c
+++ b/lib/linker.c
@@ -138,7 +138,7 @@ void addfile(char *nom)
if ((startpoint != -1) && (start != -1)) {
exception(1, _("Startpoint already defined."));
}
- startpoint = start;
+ startpoint = start + textsize;
objects[objindex]->s_text = readword(f);
objects[objindex]->s_data = readword(f);
@@ -284,6 +284,7 @@ void dumpfile(char *nom)
pushcontext(_("Writing headers"));
writeword(0x58454e4e, f);
writeword(nbrsymbs + textsize + datasize + 7, f);
+ writeword(startpoint, f);
writeword(textsize, f);
writeword(datasize, f);
writeword(bsssize, f);