Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Fix FDPIC binary loader

Ensure that the aux table is properly initialized, even when optional features
are missing. Without this, the FDPIC loader did not work. This was meant to
be included in commit d5ab780305bb6d60a7b5a74f18cf84eb6ad153b1.

Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Thomas Schwinge and committed by
Paul Mundt
4a71997a 5a799b82

+2 -2
+2 -2
arch/sh/include/asm/elf.h
··· 203 203 if (vdso_enabled) \ 204 204 NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ 205 205 else \ 206 - NEW_AUX_ENT(AT_IGNORE, 0); 206 + NEW_AUX_ENT(AT_IGNORE, 0) 207 207 #else 208 - #define VSYSCALL_AUX_ENT 208 + #define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0) 209 209 #endif /* CONFIG_VSYSCALL */ 210 210 211 211 #ifdef CONFIG_SH_FPU