lkml.org 
[lkml]   [2005]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] support for gzipped (ELF) core dumps
Date
In article <1105017578.28175.1.camel@borcx178>,
Jan Frey <jan.frey@nokia.com> wrote:
>I've written a patch for 2.4.28 kernel which enables writing of core
>dump files for ELF binaries in .gz format. This is interesting when
>using and debugging large binaries. In my case core files exceeded 1GB
>and got written via NFS...
>Anyhow, below patch is not really "beautiful", especially CRC looks
>quite annoying here.

>+/* This table is needed for efficient CRC32 calculation */
>+static const unsigned long crc_table[8][256] = {
>+ {
>+ 0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,

You know, this looks exactly the same as lib/crc32table.h ...
I'd consider using lib/crc32.c.

Mike.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.052 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site