Commit ada1bab4 authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: Remove check for undefined symbols in vmlinux

Russell King reported that some gcc / bin-utils combination may result in
undefined symbols in vmlinux and implemented a check for that.
Though the cause is very valid this check has proved to be a real pain
for other users, especially sparc and um.
Short term a similar check is asked to be implemented in arch/arm*/Makefile
and long-term to bail out if too old gcc / bin-utils is used.
Long term plan awaits a new gcc / bin-utils release.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent d300a25d
...@@ -3,27 +3,10 @@ ...@@ -3,27 +3,10 @@
# System.map is used by module-init tools and some debugging # System.map is used by module-init tools and some debugging
# tools to retreive the actual addresses of symbols in the kernel. # tools to retreive the actual addresses of symbols in the kernel.
# #
# Before creating the System.map file as a sideeffect check for
# undefined symbols.
# At least one version of the ARM bin-utils did not error out on
# undefined symbols, so catch them here instead.
# Usage # Usage
# mksysmap vmlinux System.map # mksysmap vmlinux System.map
#####
# Check for undefined symbols.
# Undefined symbols with three leading underscores are ignored since
# they are used by the sparc BTFIXUP logic - and is assumed to be undefined.
if [ "`$NM -u $1 | grep -v ' ___'`" != "" ]; then
echo "$1: error: undefined symbol(s) found:"
$NM -u $1 | grep -v ' ___'
exit 1
fi
##### #####
# Generate System.map (actual filename passed as second argument) # Generate System.map (actual filename passed as second argument)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment