[PATCH v5 11/24] tools headers UAPI: Sync ELF headers with the kernel sources
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Sep 8 02:37:32 PDT 2026
On Tue, Sep 08, 2026 at 10:56:58AM +0200, Christophe Leroy (CS GROUP) wrote:
> Le 08/09/2026 à 08:33, Thomas Weißschuh a écrit :
> > Pick up changes from the UAPI ELF header files.
> > This picks up general changes to elf.h, elf-em.h which was forgotten
> > previously and the new elf-r.h.
> >
> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
> >
> > ---
> > Cc: Arnaldo Carvalho de Melo <acme at redhat.com>
> > ---
> > tools/include/uapi/linux/elf-em.h | 71 ++++
> > tools/include/uapi/linux/elf-r.h | 696 ++++++++++++++++++++++++++++++++++++++
> > tools/include/uapi/linux/elf.h | 112 +++++-
> > 3 files changed, 868 insertions(+), 11 deletions(-)
> >
>
> > diff --git a/tools/include/uapi/linux/elf.h b/tools/include/uapi/linux/elf.h
> > index 5834b83d7f9a..88bdcbb526c1 100644
> > --- a/tools/include/uapi/linux/elf.h
> > +++ b/tools/include/uapi/linux/elf.h
>
> > @@ -312,7 +323,7 @@ typedef struct elf64_phdr {
> > #define SHN_ABS 0xfff1
> > #define SHN_COMMON 0xfff2
> > #define SHN_HIRESERVE 0xffff
> > -
> > +
>
> Getting the following warning when applying this series with 'b4 shazam'.
>
> /home/chleroy/linux-powerpc/.git/rebase-apply/patch:846: trailing
> whitespace.
>
> Seems to come from here.
That's also present in include/uapi/linux/elf.h.
I'll add a fix for that, too.
>
> > typedef struct elf32_shdr {
> > Elf32_Word sh_name;
> > Elf32_Word sh_type;
More information about the linux-riscv
mailing list