On Wed, Feb 25, 2026 at 8:20 PM Djordje Todorovic <[email protected]> wrote: >
Why? Alistair > From: djtodoro <[email protected]> > > --- > linux-user/riscv/target_elf.h | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/linux-user/riscv/target_elf.h b/linux-user/riscv/target_elf.h > index dbbfdf54d3..6f416ac3e2 100644 > --- a/linux-user/riscv/target_elf.h > +++ b/linux-user/riscv/target_elf.h > @@ -12,10 +12,16 @@ > > #ifdef TARGET_RISCV32 > #define ELF_CLASS ELFCLASS32 > -#define VDSO_HEADER "vdso-32.c.inc" > #else > #define ELF_CLASS ELFCLASS64 > -#define VDSO_HEADER "vdso-64.c.inc" > +#endif > + > +#if !TARGET_BIG_ENDIAN > +# ifdef TARGET_RISCV32 > +# define VDSO_HEADER "vdso-32.c.inc" > +# else > +# define VDSO_HEADER "vdso-64.c.inc" > +# endif > #endif > > #define HAVE_ELF_HWCAP 1 > -- > 2.34.1
