llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).