Re: ARM issue with old binutils

2011-06-26 Thread Roman Divacky
On Sat, Jun 25, 2011 at 09:16:03AM -0600, Gerald Pfeifer wrote: > On Wed, 22 Jun 2011, Damjan Marion wrote: > > I see 3 options to fix this: > > > > 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, rrx" > > instead of "rrx r0,r0") > > 2. Maintain same patch for freebsd only >

Re: ARM issue with old binutils

2011-06-25 Thread Warner Losh
On Jun 25, 2011, at 9:16 AM, Gerald Pfeifer wrote: > On Wed, 22 Jun 2011, Damjan Marion wrote: >> I see 3 options to fix this: >> >> 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, rrx" >> instead of "rrx r0,r0") >> 2. Maintain same patch for freebsd only >> 3. patch binuti

Re: ARM issue with old binutils

2011-06-25 Thread Gerald Pfeifer
On Wed, 22 Jun 2011, Damjan Marion wrote: > I see 3 options to fix this: > > 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, rrx" > instead of "rrx r0,r0") > 2. Maintain same patch for freebsd only > 3. patch binutils to support this new mnemonics 4. Finally upgrade to a m

Re: ARM issue with old binutils

2011-06-25 Thread Damjan Marion
On Jun 25, 2011, at 5:16 PM, Gerald Pfeifer wrote: > On Wed, 22 Jun 2011, Damjan Marion wrote: >> I see 3 options to fix this: >> >> 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, rrx" >> instead of "rrx r0,r0") >> 2. Maintain same patch for freebsd only >> 3. patch binuti

Re: ARM issue with old binutils

2011-06-23 Thread Damjan Marion
On Jun 22, 2011, at 5:39 PM, Warner Losh wrote: > I'd be inclined to include a small patch to FreeBSD's binutils to implement > this. You might be able to snag it from a newer version of binutils if you > can track down the author of that code and ask if you can include it in a > GPLv2 versio

Re: ARM issue with old binutils

2011-06-22 Thread Damjan Marion
On Jun 22, 2011, at 7:30 PM, Warner Losh wrote: > > On Jun 22, 2011, at 10:42 AM, Ryan Stone wrote: > >> On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: >>> I'd be inclined to include a small patch to FreeBSD's binutils to implement >>> this. You might be able to snag it from a newer ve

Re: ARM issue with old binutils

2011-06-22 Thread Warner Losh
On Jun 22, 2011, at 10:42 AM, Ryan Stone wrote: > On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: >> I'd be inclined to include a small patch to FreeBSD's binutils to implement >> this. You might be able to snag it from a newer version of binutils if you >> can track down the author of t

Re: ARM issue with old binutils

2011-06-22 Thread Ryan Stone
On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: > I'd be inclined to include a small patch to FreeBSD's binutils to implement > this.  You might be able to snag it from a newer version of binutils if you > can track down the author of that code and ask if you can include it in a > GPLv2 ve

Re: ARM issue with old binutils

2011-06-22 Thread Warner Losh
I'd be inclined to include a small patch to FreeBSD's binutils to implement this. You might be able to snag it from a newer version of binutils if you can track down the author of that code and ask if you can include it in a GPLv2 version of binutils. Warner On Jun 22, 2011, at 7:09 AM, Damja

ARM issue with old binutils

2011-06-22 Thread Damjan Marion
Hi, On my ongoing effort to support clang cross-compiling of world for ARM architecture I hit one weird issue: Problem is that old ARM Architecture Reference Manual (ARMv5) specifies mnemonics "mov r0, r0, rrx" while new ARM ARM defines same instruction as "rrx r0,r0". Both have same opcode