[Patch ARM] Fix b / bl ranges for Thumb2.

Nick Clifton nickc@redhat.com
Mon Dec 21 12:39:00 GMT 2009


Hi Ramana,

> 2009-12-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
> 	    Richard Earnshaw  <richard.earnshaw@arm.com>
> 
> 	* config/tc-arm.c (encode_thumb2_b_bl_offset): New. Refactored
> 	from md_apply_fix.
> 	(md_apply_fix): Fixup range checks for Thumb2 version 
> 	of unconditional calls. Call encode_thumb2_b_bl_offset for 
> 	unconditional branches / function calls.

Approved - please apply.

There is one small formatting nit:

+	  else
+	    if ((value & ~0x1ffffff) && ((value & ~0x1ffffff) != ~0x1ffffff))

This should be one line, not two.

Cheers
   Nick



More information about the Binutils mailing list