]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: add symbol prefix arg to kallsyms
authorJames Hogan <james@albanarts.com>
Thu, 6 Sep 2012 21:11:25 +0000 (22:11 +0100)
committerBob Liu <lliubbo@gmail.com>
Tue, 11 Sep 2012 02:25:12 +0000 (10:25 +0800)
commit5ee0e4db52e78f2a6198ffa9bc9909812b7f40fa
treebf5a5902426ef3073e1d8812d5fdb3f93a888398
parent6e14d313f2afc78ddf1f009f75bdc3da17c0bd18
kbuild: add symbol prefix arg to kallsyms

Commit 151bdf3b5db4d33b03fe9a05c7b999a310470f7a ("kbuild: link of
vmlinux moved to a script") introduced in v3.5-rc1 broke kallsyms on
architectures which have symbol prefixes.

The --symbol-prefix argument used to be added to the KALLSYMS command
line from the architecture Makefile, however this isn't picked up by the
new scripts/link-vmlinux.sh. This resulted in symbols like
kallsyms_addresses being added which weren't correctly overriding the
weak symbols such as _kallsyms_addresses. These could then trigger
BUG_ONs in kallsyms code.

This is fixed by removing the KALLSYMS addition from the architecture
Makefile, and using CONFIG_SYMBOL_PREFIX in the link-vmlinux.sh script
to determine whether to add the --symbol-prefix argument.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/Makefile
scripts/link-vmlinux.sh