Skip to contentSkip to conversation

New CRC32 fails to build

PATCH Russell King 1 participant 1 message Jan 15, 2002 Library code

lore
Share & tools
lore
#0 lore raw

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:

lib/crc32.c +1 -1
@@ -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();
Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html