lkml.org 
[lkml]   [2022]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectBug: MODPOST mismatch ignored due to LTO
Hi all,

It seems that enabling LTO breaks the check for section mismatch in modpost.

If I create on purpose a mismatch here's the output without LTO

check_section_mismatch()
fromsec=.text
tosec=.init.text
sym=kvm_arch_vcpu_create

=> section mismatch in reference: kvm_vm_ioctl_create_vcpu (section: .text) -> kvm_arch_vcpu_create (section: .init.text)

While with LTO:

check_section_mismatch()
fromsec=.text.kvm_vm_ioctl_create_vcpu
tosec=.init.text
sym=kvm_arch_vcpu_create

=> mismatch ignored, the section ".text.kvm_vm_ioctl_create_vcpu" is
unsurprisingly unknown

LTO seems to append the symbol name to the section which is a problem for
modpost.

Is that a known issue?

Thanks,
Vincent

\
 
 \ /
  Last update: 2022-11-24 13:32    [W:0.024 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site