minipli / linux-unofficial_grsec

Unofficial forward ports of the last publicly available grsecurity patch
Other
150 stars 30 forks source link

Build fails with CONFIG_GRKERNSEC_RANDSTRUCT=y and gcc 7.1 #4

Closed ghost closed 7 years ago

ghost commented 7 years ago
HOSTCXX -fPIC scripts/gcc-plugins/randomize_layout_plugin.o
  HOSTLLD -shared scripts/gcc-plugins/structleak_plugin.so
  GENHASH  scripts/gcc-plugins/size_overflow_plugin/e_fns.h
scripts/gcc-plugins/randomize_layout_plugin.c: In function ‘void randomize_layout_finish_decl(void*, void*)’:
scripts/gcc-plugins/randomize_layout_plugin.c:528:21: error: lvalue required as left operand of assignment
  DECL_ALIGN(decl) = 0;
                     ^
make[1]: *** [scripts/Makefile.host:158: scripts/gcc-plugins/randomize_layout_plugin.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Similiar report in gentoo with latest official patch 4.9.24: https://bugs.gentoo.org/show_bug.cgi?id=618372

minipli commented 7 years ago

Does https://github.com/minipli/linux-unofficial_grsec/commit/c497a768008b727e36a8ed63cc252cf8891f1cc3 fix this for you?

ghost commented 7 years ago

Yes, that fixes this issue. Thanks!