Thumb branches to an absolute address

Paul Brook paul@codesourcery.com
Tue May 31 14:11:00 GMT 2011


The attached patch fixes an assebler bug processing Thumb-2 branches to 
absolute addresses.  We don't know how far away these really are, so if no 
size suffix is specified we must assume they require a long branch.  Currently 
we end up with a narrow branch, which is almost never suficient.  We also 
segfault in some circumstances.

Tested on arm-none-eabi and arm-wrs-vxworks
Applied to CVS head

Paul

2011-05-31  Paul Brook  <paul@codesourcery.com>

	gas/
	* config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
	addresses.

	gas/testsuite/
	* arm/t2-branch-global.d: New test.
	* arm/t2-branch-global.s: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 1333 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110531/468cb1c5/attachment.bin>


More information about the Binutils mailing list