case lang_target_statement_enum:
case lang_input_section_enum:
case lang_input_statement_enum:
- case lang_fill_statement_enum:
case lang_assignment_statement_enum:
case lang_padding_statement_enum:
case lang_address_statement_enum:
CONST lang_input_file_enum_type file_type AND
CONST char *CONST target)
{
+
lang_input_statement_type *p = new_stat(lang_input_statement,
stat_ptr);
lang_has_input_file = true;
{
ldlang_undef_chain_list_type *ptr = ldlang_undef_chain_list_head;
while (ptr != (ldlang_undef_chain_list_type*)NULL) {
- ldsym_type *sy = ldsym_get(ptr->name);
asymbol *def;
asymbol **def_ptr = (asymbol **)ldmalloc((bfd_size_type)(sizeof(asymbol **)));
def = (asymbol *)bfd_make_empty_symbol(script_file->the_bfd);
case lang_address_statement_enum:
fprintf(config.map_file, "address\n");
break;
- break;
case lang_object_symbols_statement_enum:
fprintf(config.map_file, "object symbols\n");
break;
case lang_input_statement_enum:
break;
case lang_fill_statement_enum:
+ s->fill_statement.output_section =output_section_statement->bfd_section;
+
fill = s->fill_statement.fill;
break;
case lang_assignment_statement_enum:
DEFUN_VOID(lang_check)
{
lang_statement_union_type *file;
-
bfd * input_bfd;
- unsigned long input_machine;
- enum bfd_architecture input_architecture;
-
+unsigned long input_machine;
+enum bfd_architecture input_architecture;
CONST bfd_arch_info_type *compatible;
for (file = file_chain.head;
int *ptr AND
CONST char *flags)
{
- boolean state = true;
-*ptr= 0;
+boolean state = false;
+ *ptr= 0;
while (*flags)
- {
- if (*flags == '!') {
- state = false;
- flags++;
- }
- else state = true;
- switch (*flags) {
- case 'R':
-/* ptr->flag_read = state; */
- break;
- case 'W':
-/* ptr->flag_write = state; */
- break;
- case 'X':
-/* ptr->flag_executable= state;*/
- break;
- case 'L':
- case 'I':
-/* ptr->flag_loadable= state;*/
- break;
- default:
- einfo("%P%F illegal syntax in flags\n");
- break;
- }
- flags++;
- }
+ {
+ if (*flags == '!') {
+ state = false;
+ flags++;
+ }
+ else state = true;
+ switch (*flags) {
+ case 'R':
+ /* ptr->flag_read = state; */
+ break;
+ case 'W':
+ /* ptr->flag_write = state; */
+ break;
+ case 'X':
+ /* ptr->flag_executable= state;*/
+ break;
+ case 'L':
+ case 'I':
+ /* ptr->flag_loadable= state;*/
+ break;
+ default:
+ einfo("%P%F illegal syntax in flags\n");
+ break;
+ }
+ flags++;
+ }
}
char *buystring();
-int lineno = 1;
+unsigned int lineno = 1;
int old;
#undef YY_INPUT
}
<MRI,EXPRESSION>"$"([0-9A-Fa-f])+ {
- yylval.integer = strtol(yytext+1, 0,16);
+ yylval.integer = strtoul(yytext+1, 0,16);
return INT;
}
default:
base = 10;
}
- yylval.integer = strtol(yytext+1, 0, base);
+ yylval.integer = strtoul(yytext+1, 0, base);
return INT;
}
<DEFSYMEXP,MRI,BOTH,EXPRESSION>"$"?"0x"?([0-9A-Fa-f])+(M|K|m|k)? {
- yylval.integer = strtol(yytext,0,hex_mode);
+ yylval.integer = strtoul(yytext,0,hex_mode);
if (yytext[yyleng-1]=='M'
|| yytext[yyleng-1] == 'm') {
yylval.integer *= 1024*1024;