struct Section *target;
} *relocs, **reloctail;
-static int32_t current_section;
static uint64_t origin;
static int origin_defined;
*bits = 16;
sec = find_section_by_name(".text");
sec->flags |= TYPE_DEFINED | TYPE_PROGBITS;
- current_section = sec->vstart_index;
- return current_section;
+ return sec->vstart_index;
}
/* Attempt to find the requested section. If it does not
sec->flags |= TYPE_DEFINED | TYPE_PROGBITS;
#endif
- /* Set the current section and return. */
- current_section = sec->vstart_index;
- return current_section;
+ return sec->vstart_index;
}
static int bin_directive(enum directives directive, char *args, int pass)
last_section->labels = NULL;
last_section->labels_end = &(last_section->labels);
last_section->start_index = seg_alloc();
- last_section->vstart_index = current_section = seg_alloc();
+ last_section->vstart_index = seg_alloc();
}
/* Generate binary file output */