From 095ad3b84d615bd84860031fbfc0a620a2c268dc Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 3 Mar 2009 01:27:15 +0000 Subject: * objdump.c (disassemble_section): Mask address before sign extending. --- binutils/objdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/objdump.c') diff --git a/binutils/objdump.c b/binutils/objdump.c index 968a667..59289e0 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1898,7 +1898,7 @@ disassemble_section (bfd *abfd, asection *section, void *info) bfd_boolean insns; addr = section->vma + addr_offset; - addr = (addr ^ sign_adjust) - sign_adjust; + addr = ((addr & ((sign_adjust << 1) - 1)) ^ sign_adjust) - sign_adjust; if (sym != NULL && bfd_asymbol_value (sym) <= addr) { -- cgit v1.1