CC arch/x86/ia32/ia32_aout.o
arch/x86/ia32/ia32_aout.c: In function 'load_aout_binary':
arch/x86/ia32/ia32_aout.c:327: error: 'CONFIG_TASK_SIZE_MAX_SHIFT' undeclared (first use in this function)
arch/x86/ia32/ia32_aout.c:327: error: (Each undeclared identifier is reported only once
arch/x86/ia32/ia32_aout.c:327: error: for each function it appears in.)
arch/x86/ia32/ia32_aout.c:327: warning: type defaults to 'int' in declaration of 'type name'
arch/x86/ia32/ia32_aout.c:327: warning: type defaults to 'int' in declaration of 'type name'
make[2]: *** [arch/x86/ia32/ia32_aout.o] Error 1
make[1]: *** [arch/x86/ia32] Error 2
make: *** [arch/x86] Error 2
This should come from security/Kconfig, but it doesn't get set unless PAX is on. The build fails when pax is disabled.