]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: Fix modpost's license checking V3
authorAlessio Igor Bogani <abogani@kernel.org>
Thu, 14 Jul 2011 06:51:16 +0000 (08:51 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 24 Jul 2011 12:36:05 +0000 (22:06 +0930)
commit7c0cc73241d19095b2a4602e7df0b0851dcb5cd4
tree57fe7dbb569e3b69a1b2adbba1c14e9959ed64d1
parentba91f92e4fac38e6bf2503fb079a89729ffe801d
modpost: Fix modpost's license checking V3

The commit 885ab44 sorts symbols placing each of them in its own elf section.
The sorting and merging into the canonical sections are done by the linker.
Unfortunately modpost to generate Module.symvers file parses vmlinux
(already linked) and all modules object files (which aren't linked yet).
These aren't sanitized by the linker yet. That breaks modpost that can't
detect license properly for modules. This patch makes modpost aware of
the new exported symbols structure.

Thanks to Arnaud Lacombe <lacombar@gmail.com> and Anders Kaseorg
<andersk@ksplice.com> for providing useful suggestions about code.

This work was supported by a hardware donation from the CE Linux Forum.

Reported-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Alessio Igor Bogani <abogani@kernel.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c