<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 9 Jul, 2019, 11:16 PM Denis Kirjanov, <<a href="mailto:kirjanov@gmail.com">kirjanov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>On Tuesday, July 9, 2019, Muni Sekhar <<a href="mailto:munisekharrms@gmail.com" target="_blank" rel="noreferrer">munisekharrms@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov <<a href="mailto:kirjanov@gmail.com" target="_blank" rel="noreferrer">kirjanov@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Tuesday, July 9, 2019, Muni Sekhar <<a href="mailto:munisekharrms@gmail.com" target="_blank" rel="noreferrer">munisekharrms@gmail.com</a>> wrote:<br>
>><br>
>> Hi All,<br>
>><br>
>><br>
>> My Kernel is built with the following options:<br>
>><br>
>><br>
>><br>
>> CONFIG_CC_STACKPROTECTOR=y<br>
>><br>
>> CONFIG_CC_STACKPROTECTOR_STRONG=y<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5.<br>
>><br>
>><br>
>><br>
>> I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I’m getting the following error:<br>
>><br>
>><br>
>><br>
>> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler<br>
>><br>
>><br>
>><br>
>> So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG option, but how to instruct gcc to ignore this one?<br>
>><br>
>><br>
>><br>
>> In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by using sysctl or any other method?<br>
>><br>
>><br>
><br>
><br>
> Just disable it in your .config file<br>
<br>
I disabled in /lib/modules/$(uname -r)/build/.config, but still get<br>
that error. Does kernel needs to be recompiled?<br>
<br>
CONFIG_CC_STACKPROTECTOR=y<br>
# CONFIG_CC_STACKPROTECTOR_NONE is not set<br>
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set<br>
# CONFIG_CC_STACKPROTECTOR_STRONG is not set<br>
<br></blockquote><div><br></div><div>You have to disable it in your kernel source directory </div><div>and then run ‘make oldconfig’ </div></blockquote></div></div><div dir="auto">I got this error while building out of tree module in Ubuntu system. I'm directly using the Ubuntu distribution kernel , so where should I suppose to run the 'make old config'? Because I didn't have the kernel source code.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
><br>
><br>
>><br>
>> Any help is appreciated.<br>
>><br>
>><br>
>><br>
>> --<br>
>> Thanks,<br>
>> Sekhar<br>
><br>
><br>
><br>
> --<br>
> Regards / Mit besten Grüßen,<br>
> Denis<br>
><br>
<br>
<br>
-- <br>
Thanks,<br>
Sekhar<br>
</blockquote><br><br>-- <br>Regards / Mit besten Grüßen,<br>Denis<br><br>
</blockquote></div></div></div>