Re: powerpc: Don't change the section in _GLOBAL()

2016-09-20 Thread Michael Ellerman
On Thu, 2016-15-09 at 00:40:20 UTC, Michael Ellerman wrote: > Currently the _GLOBAL() macro unilaterally sets the assembler section to > ".text" at the start of the macro. This is rude as the caller may be > using a different section. > > So let the caller decide which section to emit the code int

Re: [PATCH] powerpc: Don't change the section in _GLOBAL()

2016-09-14 Thread Nicholas Piggin
On Thu, 15 Sep 2016 10:40:20 +1000 Michael Ellerman wrote: > Currently the _GLOBAL() macro unilaterally sets the assembler section to > ".text" at the start of the macro. This is rude as the caller may be > using a different section. > > So let the caller decide which section to emit the code in

[PATCH] powerpc: Don't change the section in _GLOBAL()

2016-09-14 Thread Michael Ellerman
Currently the _GLOBAL() macro unilaterally sets the assembler section to ".text" at the start of the macro. This is rude as the caller may be using a different section. So let the caller decide which section to emit the code into. On big endian we do need to switch to the ".opd" section to emit th