changeset 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 02804b7c051c
children 5965c01b3dec
files lwasm/section.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 		}