This distinction is important for architecures like Xtensa,
where 2B and 3B instructions are common, but the correct
value for instruction iteration is 1B, not 2B.
Signed-off-by: Richard Allen <rsaxvc@gmail.com>
asection *core_text_sect;
void * core_text_space;
-static int min_insn_size;
+/* Greatest common divisor of instruction sizes and alignments. */
+static int insn_boundary;
int offset_to_code;
/* For mapping symbols to specific .o files during file ordering. */
*symp = 0;
}
- min_insn_size = 1;
+ insn_boundary = 1;
offset_to_code = 0;
switch (bfd_get_arch (core_bfd))
break;
case bfd_arch_alpha:
- min_insn_size = 4;
+ insn_boundary = 4;
break;
default:
prev_line_num = 0;
vma_high = core_text_sect->vma + bfd_section_size (core_text_sect);
- for (vma = core_text_sect->vma; vma < vma_high; vma += min_insn_size)
+ for (vma = core_text_sect->vma; vma < vma_high; vma += insn_boundary)
{
unsigned int len;
lot cleaner now. */
prev = 0;
- for (vma = core_text_sect->vma; vma < vma_high; vma += min_insn_size)
+ for (vma = core_text_sect->vma; vma < vma_high; vma += insn_boundary)
{
sym_init (ltab.limit);