+Fri Sep 16 11:27:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+
+ * objdump.c (struct objdump_disasm_info): Add field require_sec.
+ (objdump_print_address): If aux->require_sec, require that the
+ symbol be in aux->sec even if HAS_RELOC is not set.
+ (disassemble_data): Set aux.require_sec around the
+ objdump_print_address call for the instruction address.
+
Thu Sep 15 21:43:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ar.c: Call xexit rather than exit.
struct objdump_disasm_info {
bfd *abfd;
asection *sec;
+ boolean require_sec;
};
/* Architecture to disassemble for, or default if NULL. */
long i;
aux = (struct objdump_disasm_info *) info->application_data;
- if ((aux->abfd->flags & HAS_RELOC)
+ if ((aux->require_sec
+ || (aux->abfd->flags & HAS_RELOC) != 0)
&& vma >= bfd_get_section_vma (aux->abfd, aux->sec)
&& vma < (bfd_get_section_vma (aux->abfd, aux->sec)
+ bfd_get_section_size_before_reloc (aux->sec))
}
}
}
+ aux.require_sec = true;
objdump_print_address (section->vma + i, &disasm_info);
+ aux.require_sec = false;
putchar (' ');
if (disassemble_fn)