Skip to content

Commit

Permalink
binfmt_elf: add ELF_HWCAP2 to compat auxv entries
Browse files Browse the repository at this point in the history
Add ELF_HWCAP2 to the set of auxv entries that is passed to
a 32-bit ELF program running in 32-bit compat mode under a
64-bit kernel.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Andrew Morton <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
Ard Biesheuvel authored and ctmarinas committed Mar 4, 2014
1 parent bff7059 commit 66d6e3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/compat_binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ static void cputime_to_compat_timeval(const cputime_t cputime,
#define ELF_HWCAP COMPAT_ELF_HWCAP
#endif

#ifdef COMPAT_ELF_HWCAP2
#undef ELF_HWCAP2
#define ELF_HWCAP2 COMPAT_ELF_HWCAP2
#endif

#ifdef COMPAT_ARCH_DLINFO
#undef ARCH_DLINFO
#define ARCH_DLINFO COMPAT_ARCH_DLINFO
Expand Down

0 comments on commit 66d6e3b

Please sign in to comment.