mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: kbuild: fix section mismatch check for vmlinux
@ 2007-06-11  8:25 Jan Beulich
  2007-06-11 21:50 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2007-06-11  8:25 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

>vmlinux does not contain relocation entries which is
>used by the section mismatch checks.
>Reported by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
>
>Use the individual objects as inputs to overcome
>this limitation.
>In modpost check the .o files and skip non-ELF files.
>
>Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

This still doesn't appear to catch all cases - since the checking logic works
on a per-module basis, references between the individual .o files aren't
being checked. A current instance where this is visible is x86-64's recently
added alloc_bootmem_high_node (non-__init, in arch/x86_64/mm/built-in.o)
calling __alloc_bootmem_core (__init, in mm/built-in.o). I suppose there's
no way around linking $(KBUILD_VMLINUX_OBJS) into vmlinux.o, and
checking that file instead.

Jan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-11 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-11  8:25 kbuild: fix section mismatch check for vmlinux Jan Beulich
2007-06-11 21:50 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®