[Crash-utility] [PATCH] Filter out s390(x) symbols that are local labels

Bernhard Walle bwalle at suse.de
Thu Jan 15 15:13:14 UTC 2009


Because s390 kernel System.map contains symbols that repeat very often

    grep -c 'L2^B1$' System.map-2.6.27.7-4-default
    276

and the limit for symbols with the same name in get_syment_array() is 200,
we filter out that symbols by modifying s390_verify_symbol() and
s390x_verify_symbol().

The symbols are not needed in crash anyway, because that are only local
labels and not global symbols needed by crash.

This is is a workaround. Andreas Krebbel already worked to resolve the problem
in binutils which prevents that symbols from being included in System.map.
http://sourceware.org/ml/binutils/2009-01/msg00181.html

However, since there are kernels (all 2.6.28 at least) out that contain that
problem, we should also workaround that in crash in my opinion.


Signed-off-by: Bernhard Walle <bwalle at suse.de>


2 files changed, 8 insertions(+)
s390.c  |    4 ++++
s390x.c |    4 ++++


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-s390-System.map-limit.diff
Type: text/x-patch
Size: 1533 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20090115/0b4c1b4a/attachment.bin>


More information about the Crash-utility mailing list