comparison lwlink/output.c @ 180:11b710d231bd

Fixed bug handling bss in lwex
author lost@l-w.ca
date Sat, 17 Sep 2011 09:57:55 -0600
parents 3b58d76ea032
children ebda5c96665e
comparison
equal deleted inserted replaced
179:606123758641 180:11b710d231bd
199 memset(buf + 14, 0, 18); 199 memset(buf + 14, 0, 18);
200 200
201 writebytes(buf, 1, 32, of); 201 writebytes(buf, 1, 32, of);
202 // output the data 202 // output the data
203 // NOTE: disjoint load addresses will not work correctly!!!!! 203 // NOTE: disjoint load addresses will not work correctly!!!!!
204 nskips = 0;
204 for (sn = 0; sn < nsects; sn++) 205 for (sn = 0; sn < nsects; sn++)
205 { 206 {
206 if (sectlist[sn].ptr -> flags & SECTION_BSS) 207 if (sectlist[sn].ptr -> flags & SECTION_BSS)
207 { 208 {
208 // no output for a BSS section 209 // no output for a BSS section