]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kallsyms: make it possible to disable /proc/kallmodsyms
authorNick Alcock <nick.alcock@oracle.com>
Mon, 3 Aug 2015 12:40:29 +0000 (13:40 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 5 Aug 2015 21:17:43 +0000 (22:17 +0100)
commit28df3b99a76e7a1bc9c9765706ff922ca36d1c29
treea30e74cefba1d0ba15582ed665ba0bb468cee9b3
parent48431b3da06677ff1abcd51eb88106a32f3bfc0f
kallsyms: make it possible to disable /proc/kallmodsyms

This allows you to build UEK without elfutils present at all, just like you
can with the upstream.

It requires a bit of fiddling about in kernel/kallsyms.c to make kallsyms
work with a NULL kallsyms_symbol_modules, and a bit of code motion to keep
the number of ifdefs down.

Verified that /proc/kallsyms has identical output (modulo only addresses,
dtrace-related symbols and, of course, the symbols ifdeffed out in this
patch) when the new CONFIG_KALLMODSYMS option is flipped.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
Orabug: 21539840
init/Kconfig
kernel/dtrace/Kconfig
kernel/kallsyms.c
scripts/Makefile
scripts/kallsyms.c