|author||Sam Ravnborg <firstname.lastname@example.org>||2009-01-14 21:38:20 +0100|
|committer||Sam Ravnborg <email@example.com>||2009-01-14 21:38:20 +0100|
Revert "kbuild: strip generated symbols from *.ko"
This reverts commit ad7a953c522ceb496611d127e51e278bfe0ff483. And commit: ("allow stripping of generated symbols under CONFIG_KALLSYMS_ALL") 9bb482476c6c9d1ae033306440c51ceac93ea80c These stripping patches has caused a set of issues: 1) People have reported compatibility issues with binutils due to lack of support for `--strip-unneeded-symbols' with objcopy 220.127.116.11.2 Reported by: Wenji 2) ccache and distcc no longer works as expeced Reported by: Ted, Roland, + others 3) The installed modules increased a lot in size Reported by: Ted, Davej + others Reported-by: Wenji Huang <firstname.lastname@example.org> Reported-by: "Theodore Ts'o" <email@example.com> Reported-by: Dave Jones <firstname.lastname@example.org> Reported-by: Roland McGrath <email@example.com> Signed-off-by: Sam Ravnborg <firstname.lastname@example.org>
Diffstat (limited to 'scripts/mksysmap')
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap
index 1db316a3712b..6e133a0bae7a 100644
@@ -37,6 +37,9 @@
# readprofile starts reading symbols when _stext is found, and
# continue until it finds a symbol which is not either of 'T', 't',
-# 'W' or 'w'.
+# 'W' or 'w'. __crc_ are 'A' and placed in the middle
+# so we just ignore them to let readprofile continue to work.
+# (At least sparc64 has __crc_ in the middle).
+$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)' > $2
-$NM -n $1 | grep -v '\( [aNUw] \)\|\( \$[adt]\)' > $2