This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi there, When target isn't specified from either command line or .arch/.cpu directive, current gas will calculate the target arch before relaxation step and assume that a possible relaxation will happen anyway even this relaxation doesn't happen in late relaxation step. This causes a overly assumption to target arch e.g. set target arch to armv6t2 where armv4t is good enough. The attached patch intends to do an accurate calculation of target arch by considering the target arch in relaxation step. Tested with Binutils regression test. Is it OK? BR, Terry gas/ 2014-09-29 Terry Guo <terry.guo@arm.com> * config/tc-arm.c (md_assemble): Do not consider relaxation. (md_convert_frag): Test and set target arch attribute accordingly. (aeabi_set_attribute_string): Turn it into a global function. * config/tc-arm.h (md_post_relax_hook): Enable it for ARM target. (aeabi_set_public_attributes): Declare it. gas/testsuite/ 2014-09-29 Terry Guo <terry.guo@arm.com> * gas/arm/attr-arch-assumption.d: New file. * gas/arm/attr-arch-assumption.s: Likewise. ld/testsuite/ 2014-09-29 Terry Guo <terry.guo@arm.com> * ld-arm/tls-longplt-lib.d: Updated. * ld-arm/tls-longplt-lib.s: Likewise. * ld-arm/tls-longplt.d: Likewise. * ld-arm/tls-longplt.s: Likewise.
Attachment:
arm-attr-sec-relaxation-v1.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |