Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-05 Thread Segher Boessenkool
On Tue, May 04, 2021 at 10:15:34PM +1000, Michael Ellerman wrote: > Segher Boessenkool writes: > > On Mon, May 03, 2021 at 10:51:41AM +1000, Nicholas Piggin wrote: > >> then ELF ABIv2 is more explanatory about it being an abi change > >> rather than base elf change, even if it's not the "correct"

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-04 Thread Michal Suchánek
On Tue, May 04, 2021 at 11:11:25PM +0530, Naveen N. Rao wrote: > Nicholas Piggin wrote: > > Excerpts from Michal Suchánek's message of May 4, 2021 6:17 am: > > > On Mon, May 03, 2021 at 11:34:25AM +0200, Michal Suchánek wrote: > > > > On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote:

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-04 Thread Naveen N. Rao
Nicholas Piggin wrote: Excerpts from Michal Suchánek's message of May 4, 2021 6:17 am: On Mon, May 03, 2021 at 11:34:25AM +0200, Michal Suchánek wrote: On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > > Excerpt

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-04 Thread Michael Ellerman
Segher Boessenkool writes: > On Mon, May 03, 2021 at 10:51:41AM +1000, Nicholas Piggin wrote: >> Excerpts from Segher Boessenkool's message of May 3, 2021 3:55 am: >> > On Wed, Apr 29, 2020 at 10:57:16AM +1000, Nicholas Piggin wrote: >> >> Excerpts from Segher Boessenkool's message of April 29, 20

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-04 Thread Nicholas Piggin
Excerpts from Michal Suchánek's message of May 4, 2021 6:17 am: > On Mon, May 03, 2021 at 11:34:25AM +0200, Michal Suchánek wrote: >> On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: >> > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: >> > > Excerpts from Michal Su

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 11:34:25AM +0200, Michal Suchánek wrote: > On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: > > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > > > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > > > On Tue, Apr 28, 2020

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Segher Boessenkool
Hi! On Mon, May 03, 2021 at 10:51:41AM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of May 3, 2021 3:55 am: > > On Wed, Apr 29, 2020 at 10:57:16AM +1000, Nicholas Piggin wrote: > >> Excerpts from Segher Boessenkool's message of April 29, 2020 9:40 am: > >> I blame too

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > > >> Provide an option to

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > >> Provide an option to use ELFv2 ABI for big endian builds. This works on > >> GCC and clang (si

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-02 Thread Nicholas Piggin
Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: >> Provide an option to use ELFv2 ABI for big endian builds. This works on >> GCC and clang (since 2014). It is less well tested and supported by the >> GNU toolchain,

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-02 Thread Nicholas Piggin
Excerpts from Segher Boessenkool's message of May 3, 2021 3:55 am: > On Wed, Apr 29, 2020 at 10:57:16AM +1000, Nicholas Piggin wrote: >> Excerpts from Segher Boessenkool's message of April 29, 2020 9:40 am: >> I blame toolchain for -mabi=elfv2 ! And also some blame on ABI document >> which is call

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-02 Thread Segher Boessenkool
On Wed, Apr 29, 2020 at 10:57:16AM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of April 29, 2020 9:40 am: > I blame toolchain for -mabi=elfv2 ! And also some blame on ABI document > which is called ELF V2 ABI rather than ELF ABI V2 which would have been > unambiguou

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-02 Thread Michal Suchánek
On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > Provide an option to use ELFv2 ABI for big endian builds. This works on > GCC and clang (since 2014). It is less well tested and supported by the > GNU toolchain, but it can give some useful advantages of the ELFv2 ABI > for BE (e.g

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2020-04-28 Thread Nicholas Piggin
Excerpts from Segher Boessenkool's message of April 29, 2020 9:40 am: > Hi! > > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: >> +config BUILD_BIG_ENDIAN_ELF_V2 >> +bool "Build big-endian kernel using ELFv2 ABI (EXPERIMENTAL)" >> +depends on PPC64 && CPU_BIG_ENDIAN && EX

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2020-04-28 Thread Segher Boessenkool
Hi! On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > +config BUILD_BIG_ENDIAN_ELF_V2 > + bool "Build big-endian kernel using ELFv2 ABI (EXPERIMENTAL)" > + depends on PPC64 && CPU_BIG_ENDIAN && EXPERT > + default n > + select BUILD_ELF_V2 > + help > + Thi

[PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2020-04-28 Thread Nicholas Piggin
Provide an option to use ELFv2 ABI for big endian builds. This works on GCC and clang (since 2014). It is less well tested and supported by the GNU toolchain, but it can give some useful advantages of the ELFv2 ABI for BE (e.g., less stack usage). Some distros even build BE ELFv2 userspace. Review