Re: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Denys Dmytriyenko
On Fri, Apr 13, 2012 at 11:58:02AM +0100, Mans Rullgard wrote: > On 13 April 2012 11:47, Richard Earnshaw wrote: > > BTW, taking a v7a toolchain and trying to use it to build v4 binaries is > > likely to be problematic. For it to work you'll need to ensure that > > *all* your libraries are built t

RE: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Allen Martin
> 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 >

Re: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Richard Earnshaw
On 13/04/12 12:05, Richard Earnshaw wrote: > On 13/04/12 11:58, Mans Rullgard wrote: >> On 13 April 2012 11:47, Richard Earnshaw wrote: >>> On 12/04/12 20:10, Allen Martin wrote: I have a cross toolchain I configured with "--with-arch=armv7-a --with-cpu=cortex-a9 --with-tune=cortex-a9"

Re: [PATCH] ld: add switch to disable use of BLX instructions

2012-04-13 Thread Richard Earnshaw
On 13/04/12 16:19, Allen Martin wrote: > 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. Sorry, this is *not* the right way to solve this problem. You need to find ou

[ACTIVITY] report week 15

2012-04-13 Thread Peter Maydell
Current Milestones: || || Planned|| Estimate || Actual || ||cp15-rework || 2012-01-06 || 2012-04-10 |||| Historical Milestones: ||initial-a15-system-model || 2012-01-27 || 2012-01-27 || 2012-01-17 || ||qemu-kvm-getting-started || 2012-

[ACTIVITY] Apr 11 - Apr 13

2012-04-13 Thread Ulrich Weigand
== GCC == * Committed fix for LP #968766 (PR tree-optimization/52880) to FSF mainline and Linaro GCC 4.6 and 4.7. * Created merge reqest to fix LP #972648 for Linaro GCC 4.6 by backporting mainline patch; pending approval. * Updated patch to use vld1.64/vst1.64 instead of vldm/vstm

[PATCH] ld: add switch to disable use of BLX instructions

2012-04-13 Thread Allen Martin
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

RE: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Allen Martin
> 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

Re: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Richard Earnshaw
On 13/04/12 11:58, Mans Rullgard wrote: > On 13 April 2012 11:47, Richard Earnshaw wrote: >> On 12/04/12 20:10, Allen Martin wrote: >>> 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 compati

Re: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Mans Rullgard
On 13 April 2012 11:47, Richard Earnshaw wrote: > On 12/04/12 20:10, Allen Martin wrote: >> 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 ge

Re: getting armv7 linker to emit armv4t thumb interworking

2012-04-13 Thread Richard Earnshaw
On 12/04/12 20:10, Allen Martin wrote: > 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 toolc

Re: Phone call (was Re: Armhf dynamic linker path)

2012-04-13 Thread Richard Earnshaw
On 12/04/12 19:29, Dennis Gilmore wrote: > > off topic but i find aarch64 weird and too generic is it arm alpha amd > atom. > That's only 'cos it's new. It's no different from names like ia64. R. ___ linaro-toolchain mailing list linaro-toolchain