[PATCH] Simplify mips16 conversion to even address

Richard Sandiford rsandifo@redhat.com
Sat Mar 6 11:36:00 GMT 2004


Fred Fish <fnf@ninemoons.com> writes:
> @@ -6814,9 +6814,8 @@ _bfd_mips_elf_finish_dynamic_symbol (bfd
>      }
>  
>    /* If this is a mips16 symbol, force the value to be even.  */
> -  if (sym->st_other == STO_MIPS16
> -      && (sym->st_value & 1) != 0)
> -    --sym->st_value;
> +  if (sym->st_other == STO_MIPS16)
> +    sym->st_value &= ~1;

This isn't 64-bit clean, is it?  Not that anyone uses elf64 for
mips16 AFAIK, but still...

Richard



More information about the Binutils mailing list