* Bug: MODPOST mismatch ignored due to LTO
@ 2022-11-24 12:31 Vincent Donnefort
0 siblings, 0 replies; only message in thread
From: Vincent Donnefort @ 2022-11-24 12:31 UTC (permalink / raw)
To: llvm, linux-kernel; +Cc: samitolvanen, nhuck, ndesaulniers, kernel-team
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-24 12:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-24 12:31 Bug: MODPOST mismatch ignored due to LTO Vincent Donnefort
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.