comparison 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
comparison
equal deleted inserted replaced
160:02804b7c051c 161:409295d09a2e
96 s -> reloctab = NULL; 96 s -> reloctab = NULL;
97 if (!strcasecmp(sn, "bss") || !strcasecmp(sn, ".bss")) 97 if (!strcasecmp(sn, "bss") || !strcasecmp(sn, ".bss"))
98 { 98 {
99 s -> flags |= section_flag_bss; 99 s -> flags |= section_flag_bss;
100 } 100 }
101 if (!strcasecmp(sn, "_constant")) 101 if (!strcasecmp(sn, "_constant") || !strcasecmp(sn, "_constants"))
102 { 102 {
103 s -> flags |= section_flag_constant; 103 s -> flags |= section_flag_constant;
104 } 104 }
105 105
106 // parse options 106 // parse options