comparison lwlink/readfiles.c @ 156:fc8386b13399

Added 'constant' sections to object file handling for lwasm and lwlink
author lost@l-w.ca
date Sun, 28 Aug 2011 02:06:42 -0600
parents fdc11ef4115b
children 606123758641
comparison
equal deleted inserted replaced
155:1571e150f1fd 156:fc8386b13399
196 { 196 {
197 case 0x01: 197 case 0x01:
198 s -> flags |= SECTION_BSS; 198 s -> flags |= SECTION_BSS;
199 break; 199 break;
200 200
201 case 0x02:
202 s -> flags |= SECTION_CONST;
203 break;
204
201 default: 205 default:
202 fprintf(stderr, "%s (%s): unrecognized section flag %02X\n", fn -> filename, s -> name, (int)(CURBYTE())); 206 fprintf(stderr, "%s (%s): unrecognized section flag %02X\n", fn -> filename, s -> name, (int)(CURBYTE()));
203 exit(1); 207 exit(1);
204 } 208 }
205 NEXTBYTE(); 209 NEXTBYTE();