diff lwasm/section.c @ 367:34dfc9747f23

Reduction passes complete
author lost@starbug
date Thu, 15 Apr 2010 21:56:06 -0600
parents d96c30e60ddf
children d99322ef6f21
line wrap: on
line diff
--- a/lwasm/section.c	Wed Apr 14 21:02:53 2010 -0600
+++ b/lwasm/section.c	Thu Apr 15 21:56:06 2010 -0600
@@ -87,7 +87,7 @@
 		// create section data structure
 		s = lw_alloc(sizeof(sectiontab_t));
 		s -> name = lw_strdup(sn);
-		s -> offset = lw_expr_build(lw_expr_type_int, 0);
+		s -> offset = lw_expr_build(lw_expr_type_special, lwasm_expr_secbase, s);
 		s -> flags = section_flag_none;
 		if (!strcasecmp(sn, "bss") || !strcasecmp(sn, ".bss"))
 		{