On Thu, 2014-05-15 at 03:46 -0700, Guenter Roeck wrote: > On 05/15/2014 02:47 AM, Alan Modra wrote: > > On Wed, May 14, 2014 at 08:34:30AM -0700, Guenter Roeck wrote: > >> Bummer. Confirmed, if I replace "@h" with "@high" in just one place, > >> the builds pass with binutils 2.24. Unfortunately the same builds then > >> fails with binutils 2.23. > >> > >> Any idea how to get it to compile with both old and new versions ? > > > > The standard way with GNU software would be to write a configure test, > > that checks for @high support in the assembler, and defines a macro > > if the assembler passes the check. I'm not that familiar with the > > linux kernel these days, but a little grepping around says that > > something like > > > > ashigh := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) > > KBUILD_AFLAGS += $(ashigh) > > > > might work. > > > > Yes, it does.
Care to send a patch ? :-) Cheers, Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev