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]

Re: [PATCH] ARM attributes and user intent


Richard Earnshaw wrote:
This looks good.  However, if code is compiled/assembled without
interworking, then it seams a bit odd that the other instruction set is
still permitted.

Thus if the user compiles code with -mcpu=arm7tdmi -mno-thumb-interwork,
should the code be marked arm-only (ie permitted thumb use was none)?

Sadly, although gas has -mthumb-interwork, it doesn't have the inverse
(-mno-thumb-interwork).  That's a bit unfortunate given that the new ABI
mandates interworking by default.

This can be fixed by means of an extra directive:


.eabi_attribute Tag_THUMB_ISA_use, 0

Obviously, this or any other solution will require a compiler fix to pass the information through. In other cases the attribute information is preferred in the file - I think because it travels with the .s file.

Maybe I should follow up with a GCC patch?

Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]