# \[PATCH v2 0/4\] powerpc/64: ELFv2 conversion

- From: Nicholas Piggin \<npiggin@gmail.com\>
- Date: 2023-06-06 09:39:34 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/06/9531078
- Thread: https://ratatoskr.run/linuxppc-dev/2023/06/9531078/t.md

```text
This is a follow on from the series here

https://lore.kernel.org/linuxppc-dev/20230505071850.228734-1-npiggin@gmail.com/

With feedback addressed and Christophe's -mprofile-kernel for BE added,

https://lore.kernel.org/linuxppc-dev/20230506011814.8766-1-npiggin@gmail.com/

And dropped the last RFC patch that removes ELFv1 entirely. Maybe we can
wait one or two releases after this before doing that.

Thanks,
Nick

Nicholas Piggin (4):
  powerpc/64: Force ELFv2 when building with LLVM linker
  powerpc/64: Make ELFv2 the default for big-endian builds
  powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels
  powerpc/64s: Remove support for ELFv1 little endian userspace

 arch/powerpc/Kconfig                            | 13 +++++++------
 arch/powerpc/include/asm/elf.h                  |  6 ++++++
 arch/powerpc/include/asm/thread_info.h          |  6 +++++-
 arch/powerpc/tools/gcc-check-mprofile-kernel.sh | 11 ++++++-----
 4 files changed, 24 insertions(+), 12 deletions(-)

-- 
2.40.1

```
