diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 07c4d89721..449954ef85 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2010-09-22 Robin Getz + + * bfin-dis.c (fmtconst): Cast address to 32bits. + 2010-09-22 Mike Frysinger * bfin-dis.c (decode_REGMV_0): Rewrite valid combo checks. diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c index b17e0552b9..0aec087c83 100644 --- a/opcodes/bfin-dis.c +++ b/opcodes/bfin-dis.c @@ -138,6 +138,9 @@ fmtconst (const_forms_t cf, TIword x, bfd_vma pc, disassemble_info *outf) if (constant_formats[cf].pcrel) ea += pc; + /* truncate to 32-bits for proper symbol lookup/matching */ + ea = (bu32)ea; + if (outf->symbol_at_address_func (ea, outf) || !constant_formats[cf].exact) { outf->print_address_func (ea, outf);