[Crash-utility] [PATCH] Fix module size and num_symtab for 2.6.27

Bernhard Walle bwalle at suse.de
Thu Nov 6 17:49:30 UTC 2008


This patch implements the kernel change

    commit 2f0f2a334bc38b61a9afca951185cd3844ee709d
    Author: Denys Vlasenko <vda.linux at googlemail.com>
    Date:   Tue Jul 22 19:24:27 2008 -0500

    module: turn longs into ints for module sizes

    This shrinks module.o and each *.ko file.

    And finally, structure members which hold length of module
    code (four such members there) and count of symbols
    are converted from longs to ints.

    We cannot possibly have a module where 32 bits won't
    be enough to hold such counts.

    For one, module loading checks module size for sanity
    before loading, so such insanely big module will fail
    that test first.

    Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
    Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>

in crash. Without the patch I was not able to open a core dump created with
2.6.27 on POWER. I think it's mostly a problem on big endian architectures,
because on little endian you can have luck and read zeros which don't change
the value of a number while on big endian you cannot have luck. ;-)


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-struct-module-2.6.27.diff
Type: text/x-patch
Size: 3922 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20081106/5f96e17a/attachment.bin>


More information about the Crash-utility mailing list