aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2004-08-19 03:05:28 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2004-08-19 03:05:28 +0200
commitada1bab4401a9fd3a76b498f0c461133b658559b (patch)
treeae2b60445858ae80721a76b5253f7735dced69ed /scripts
parentd300a25d4a2c395e4d6cc55284142542cbb78140 (diff)
downloadhistory-ada1bab4401a9fd3a76b498f0c461133b658559b.tar.gz
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: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mksysmap17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap
index 279fb9214aa00e..2904d3b383ed30 100644
--- a/scripts/mksysmap
+++ b/scripts/mksysmap
@@ -3,28 +3,11 @@
# System.map is used by module-init tools and some debugging
# 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
# 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)
# $NM produces the following output: