Thanks for the fast reply!
I tried to compile the plugins with your instructions but without any success. I think it is a codesourcery issue more than a grsecurity issue though.
I modified linux-3.1.5/scripts/gcc-plugin.sh to not redirect the compiler output to /dev/null to be able to see what happens. I get the following output from the gcc-plugin.sh script:
- Code: Select all
In file included from /opt/codesourcery/arm-2011.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/plugin/include/tm.h:23:0,
from <stdin>:3:
/opt/codesourcery/arm-2011.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/plugin/include/config/arm/arm.h:39:34: fatal error: config/vxworks-dummy.h: No such file or directory
compilation terminated.
make[2]: Entering directory `/home/proj/linux/linux-3.1.5'
scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: Leaving directory `/home/proj//linux/linux-3.1.5'
In file included from /opt/codesourcery/arm-2011.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/plugin/include/tm.h:23:0,
from <stdin>:3:
/opt/codesourcery/arm-2011.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/plugin/include/config/arm/arm.h:39:34: fatal error: config/vxworks-dummy.h: No such file or directory
There is no such file as vxworks_dummy.h in the codesourcery toolchain.
I'm on a tight schedule, so I'm going to go with the DISABLE_PAX_PLUGINS alternative for now.
//Jonas