[patch] Unbreak Arm blx relocations

Paul Brook paul@codesourcery.com
Tue Mar 14 20:07:00 GMT 2006


My previous patch to implement Arm bl->blx conversion accidentally removed the 
gas code for resolving relocations on blx instructions.

http://sourceware.org/ml/binutils/2005-10/msg00430.html

The symptoms are that a BLX instruction to a label in the same section gets 
resolved by the assembler, but the H offset bit is not set correctly.

The patch below fixes this.
Testes on arm-none-eabi.
Ok?

Paul

2006-03-14  Paul Brook  <paul@codesourcery.com>

gas/
	* config/tc-arm.c (md_apply_fix): Set H bit on blx instruction.
gas/testsuite/
	* gas/arm/blx-local.d: New test.
	* gas/arm/blx-local.d: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.gas_blx
Type: text/x-diff
Size: 1956 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060314/7c24c410/attachment.bin>


More information about the Binutils mailing list