diff lwasm/section.c @ 161:409295d09a2e

Add _constants to the list of sections that get the constant flag by default
author lost@l-w.ca
date Sun, 28 Aug 2011 15:04:35 -0600
parents fc8386b13399
children 872fa82680e1
line wrap: on
line diff
--- a/lwasm/section.c	Sun Aug 28 14:17:33 2011 -0600
+++ b/lwasm/section.c	Sun Aug 28 15:04:35 2011 -0600
@@ -98,7 +98,7 @@
 		{
 			s -> flags |= section_flag_bss;
 		}
-		if (!strcasecmp(sn, "_constant"))
+		if (!strcasecmp(sn, "_constant") || !strcasecmp(sn, "_constants"))
 		{
 			s -> flags |= section_flag_constant;
 		}