[PATCH][ARM][2/2] Update intended_arch based on info got during parsing
Jiong Wang
jiong.wang@arm.com
Thu Aug 14 09:16:00 GMT 2014
this patch update intended_arch based on the info got during parsing.
and naturally fix the hiding bugs exposed by the new added testcase.
* should convert blx to bl under arm->arm transfer.
* wrong relocation calculation against local symbol.
on issue introduced by this patch is *.p2align compatibility*. previously
if the user has not specify arch through cmdline or directive, then
.p2align will always be expanded into 2byte nop under thumb mode?
but because the handling of .p2align is actually done via relax, so
it's after parsing stage, thus after this patch, .p2align is not
always expanded into 2byte nop under thumb mode, this patch keeps
the original thumb nop expanding logic untouched.
no regression on arm-none-eabi full test with multilib enabled.
OK to install ?
thanks.
gas/
* config/tc-arm.c (aeabi_set_public_attributes): Update intended_arch based on the info
we got during parsing.
(arm_handle_align): Make sure the p2align expanding logic under thumb unchanged.
patch.
gas/testsuite
* gas/arm/blx-bl-convert.d: New testcase.
* gas/arm/blx-bl-convert.l: Warning expectation.
* gas/arm/blx-bl-convert.s: Source file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ARM-GAS-Update-intended_arch-based-on-what-we-got-du.patch
Type: text/x-patch
Size: 3339 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140814/bb2c757b/attachment.bin>
More information about the Binutils
mailing list