> I've just built an assembler/linker with the options you mention.
>
> Compiling the following testcase:
>
> .text
> .arm
> .cpu arm7tdmi
> .global _start
> .type _start, %function
> _start:
> bl bar
> bx lr
> .thumb
> .global bar
>
Add --no-use-blx switch to force disabling of BLX instructions for
thumb interworking. This allows ld to emit code that is armv4t safe
even if configured for armv5 or later.
---
bfd/bfd-in.h |4 ++--
bfd/bfd-in2.h |4 ++--
bfd/elf32-arm.c| 10 +-
ld/em
> To get v4t style interworking you need to ensure all your objects
> are
> built for v4t. The use of blx should only occur if the linker
> detects
> an object file in the input list that already contains support for
> blx
> (for example, because it was compiled with v5 or later).
I'm compiling a
I have a cross toolchain I configured with "--with-arch=armv7-a
--with-cpu=cortex-a9 --with-tune=cortex-a9" and I want the linker to emit
armv4t compatible thumb interworking, but I can't seem to get it to.
I noticed that if I create a armv4t toolchain with "--with-arch=armv4t
--with-cpu=arm7td