Mercurial > hg-old > index.cgi
comparison lwasm/section.c @ 367:34dfc9747f23
Reduction passes complete
author | lost@starbug |
---|---|
date | Thu, 15 Apr 2010 21:56:06 -0600 |
parents | d96c30e60ddf |
children | d99322ef6f21 |
comparison
equal
deleted
inserted
replaced
366:84dc6d2ec6ba | 367:34dfc9747f23 |
---|---|
85 if (!s) | 85 if (!s) |
86 { | 86 { |
87 // create section data structure | 87 // create section data structure |
88 s = lw_alloc(sizeof(sectiontab_t)); | 88 s = lw_alloc(sizeof(sectiontab_t)); |
89 s -> name = lw_strdup(sn); | 89 s -> name = lw_strdup(sn); |
90 s -> offset = lw_expr_build(lw_expr_type_int, 0); | 90 s -> offset = lw_expr_build(lw_expr_type_special, lwasm_expr_secbase, s); |
91 s -> flags = section_flag_none; | 91 s -> flags = section_flag_none; |
92 if (!strcasecmp(sn, "bss") || !strcasecmp(sn, ".bss")) | 92 if (!strcasecmp(sn, "bss") || !strcasecmp(sn, ".bss")) |
93 { | 93 { |
94 s -> flags |= section_flag_bss; | 94 s -> flags |= section_flag_bss; |
95 } | 95 } |