I'm having problems compiling a 2.6.32.10 kernel (i386) using the latest stable grsecurity patch (grsecurity-2.1.14-2.6.32.10-201003211638.patch).
The following error occurs in the final stages of compiling the kernel:
- Code: Select all
LD init/built-in.o
LD .tmp_vmlinux1
kernel/built-in.o: In function `is_ksym_addr':
kallsyms.c:(.text+0x2f7d3): undefined reference to `MODULES_EXEC_VADDR'
kallsyms.c:(.text+0x2f7dd): undefined reference to `MODULES_EXEC_END'
make: *** [.tmp_vmlinux1] Error 1
Loadable module support is disabled in my configuration. This may be the cause of the problem.
After replacing line 79 in kernel/kallsyms.c
- Code: Select all
#if defined(CONFIG_X86_32) && defined(CONFIG_PAX_KERNEXEC)
to
- Code: Select all
#if defined(CONFIG_MODULES) && defined(CONFIG_X86_32) && defined(CONFIG_PAX_KERNEXEC)
the compilation finished succesfully. I'm not an expert but I think this is a bug. Is this the right solution to fix this problem?