Re: how to fix section mismatch warning after inserting #pragma GCC optimize ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 23, 2022 at 07:48:01PM +0900, Chan Kim wrote:
> Hello all,
> 
>  
> 
> In linux 5.4.21 source code, I put
> 
>     #pragma GCC push_options
> 
>     #pragma GCC optimize ("O0")

Do not do that.  Bad things will happen, the kernel really does not like
this at all.

Why do you want to build the kernel with "O0"?  What problem are you
trying to solve that you think this will resolve it?

Also, 5.4.21 is very old and obsolete and known insecure.  Please use a
more modern kernel version.

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux