This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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] Do not use 'bx' on armv4


On Thu, 1 Oct 2009, Phil Blundell wrote:

> On Thu, 2009-10-01 at 10:51 +0300, Kirill A. Shutemov wrote:
> > armv4 has no thumb support and instruction 'bx'. Use 'mov pc' instead if
> > __USE_BX__ is not defined.
> 
> I'm not sure that this patch is the right way to solve the problem;
> interworking is mandatory for the EABI.  You would probably do better to
> just use the linker flag --fix-v4bx to patch those instructions during
> final link; I think recent gccs will do this automatically for
> -march=armv4.

Or --fix-v4bx-interworking (producing binaries that work on v4 and are 
interworking-safe on v4t), if you are building a shared library that might 
not just be used on v4 hardware.

-- 
Joseph S. Myers
joseph@codesourcery.com


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