summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2011-02-27 13:14:32 -0600
committerCyrill Gorcunov <gorcunov@gmail.com>2011-02-28 09:49:04 +0300
commite3f47806658de042af0eaccb1cc7896be388b397 (patch)
tree208093f9b05fa60f99a1defc2bb9e14d634071e6
parentb6c1dcaf7081cb06a7633f26c0aa8de003e92def (diff)
downloadnasm-e3f47806658de042af0eaccb1cc7896be388b397.tar.gz
output/outbin.c: initialize section align/start attributes upon creation
-rw-r--r--output/outbin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/output/outbin.c b/output/outbin.c
index 4012cc9c..97a29a89 100644
--- a/output/outbin.c
+++ b/output/outbin.c
@@ -214,6 +214,10 @@ static struct Section *create_section(char *name)
last_section->follows = last_section->vfollows = 0;
last_section->length = 0;
last_section->flags = 0;
+ last_section->align = 0;
+ last_section->valign = 0;
+ last_section->start = 0;
+ last_section->vstart = 0;
last_section->next = NULL;
/* Register our sections with NASM. */