dynup / kpatch

kpatch - live kernel patching
GNU General Public License v2.0
1.49k stars 304 forks source link

Fix builds with CONFIG_ERROR #1393

Closed joe-lawrence closed 6 months ago

joe-lawrence commented 6 months ago

When CONFIG_WERROR is set, CONFIG_LD_ORPHAN_WARN_LEVEL of "error" will fail for kernels built with KCFLAGS="-ffunction-sections" due to all the "unplaced orphan section .text. " errors. This MR temporarily demotes ld --orphan-handling to a mere warning so that kpatch-build may complete.