This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH] Do not use 'bx' on armv4
On Thu, 2009-10-01 at 12:14 +0300, Kirill A. Shutemov wrote:
> On Thu, Oct 1, 2009 at 11:19 AM, Phil Blundell <pb@reciva.com> 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.
>
> Where can I read about it?
The EABI spec, I guess. It's on the ARM website.
> > 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.
>
> This problem fixed in similar way at least at sysdeps/arm/dl-machine.h
> and sysdeps/arm/dl-trampoline.S.
Right, but those files are for the old ABI.
p.