kbuild: add CONFIG_VMLINUX_MAP expert option
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 5 Mar 2021 09:27:07 +0000 (10:27 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Apr 2021 20:12:26 +0000 (05:12 +0900)
commit5cc1247204616528b427e276c97c5bc4c9612347
treeeba8bcc358486f5d2a030ef1742e52849e2019a5
parent609bbb4de4f85b7ef45d81a88e6b7dfe3bf5ccea
kbuild: add CONFIG_VMLINUX_MAP expert option

It can be quite useful to have ld emit a link map file, in order to
debug or verify that special sections end up where they are supposed
to, and to see what LD_DEAD_CODE_DATA_ELIMINATION manages to get rid
of.

The only reason I'm not just adding this unconditionally is that the
.map file can be rather large (several MB), and that's a waste of
space when one isn't interested in these things. Also make it depend
on CONFIG_EXPERT.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
.gitignore
Documentation/dontdiff
lib/Kconfig.debug
scripts/link-vmlinux.sh