unsigned to avoid problems when disassembling code at high-bit-set addresses.
+Tue Oct 27 14:39:00 1998 Nick Clifton <nickc@cygnus.com>
+
+ * objdump.c (disassemble_bytes): Applied this patch from Philip
+ Blundell <pb@nexus.co.uk>: Make address variables unsigned to
+ avoid problems when disassembling code at high-bit-set addresses.
+
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (strhash): New function.
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (strhash): New function.
static void
disassemble_bytes PARAMS ((struct disassemble_info *, disassembler_ftype,
static void
disassemble_bytes PARAMS ((struct disassemble_info *, disassembler_ftype,
- boolean, bfd_byte *, long, long, arelent ***,
- arelent **));
+ boolean, bfd_byte *, unsigned long, unsigned long,
+ arelent ***, arelent **));
static void
disassemble_data PARAMS ((bfd *));
static void
disassemble_data PARAMS ((bfd *));
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
- printf (_("No symbols in \"%s\".\n"), bfd_get_filename (abfd));
+ fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
symcount = 0;
return NULL;
}
symcount = 0;
return NULL;
}
if (symcount < 0)
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
if (symcount < 0)
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
- fprintf (stderr, _("%s: %s: No symbols\n"),
- program_name, bfd_get_filename (abfd));
+ fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
disassembler_ftype disassemble_fn;
boolean insns;
bfd_byte *data;
disassembler_ftype disassemble_fn;
boolean insns;
bfd_byte *data;
- long start;
- long stop;
+ unsigned long start;
+ unsigned long stop;
arelent ***relppp;
arelent **relppend;
{
arelent ***relppp;
arelent **relppend;
{
int bytes_per_line;
boolean done_dot;
int skip_addr_chars;
int bytes_per_line;
boolean done_dot;
int skip_addr_chars;
aux = (struct objdump_disasm_info *) info->application_data;
section = aux->sec;
aux = (struct objdump_disasm_info *) info->application_data;
section = aux->sec;
i = start;
while (i < stop)
{
i = start;
while (i < stop)
{
int bytes;
boolean need_nl = false;
int bytes;
boolean need_nl = false;
char *target = default_target;
boolean seenflag = false;
char *target = default_target;
boolean seenflag = false;
setlocale (LC_MESSAGES, "");
setlocale (LC_MESSAGES, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);