lkml.org 
[lkml]   [2002]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectNew CRC32 fails to build
In 2.5.2, the new CRC stuff fails to build because the cleanup function
isn't marked with __exit:

/home/rmk/v2.5/linux-ebsa285/lib/lib.a(crc32.o): In function `cleanup_crc32':
crc32.o(.text+0x98): relocation truncated to fit: R_ARM_PC24 text.exit
crc32.o(.text+0x9c): relocation truncated to fit: R_ARM_PC24 text.exit

The following patch fixes the problem:

--- orig/lib/crc32.c Tue Jan 15 14:16:27 2002
+++ linux/lib/crc32.c Tue Jan 15 16:36:15 2002
@@ -558,7 +558,7 @@
/**
* cleanup_crc32(): frees crc32 data when no longer needed
*/
-static void cleanup_crc32(void)
+static void __exit cleanup_crc32(void)
{
crc32cleanup_le();
crc32cleanup_be();

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

-
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 13:23    [W:0.019 / U:6.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site