Some upcoming work in gold (by Sriraman Tallam) requires a CRC function. I could add a CRC function to gold, but I think it makes sense to add it to libiberty instead. This CRC function is a copy of the one in gdb, except that the table of constants is precomputed. The gdb maintainers may want to consider switching to this version--I don't think 1K of read-only data space is all that much these days. I am running a bootstrap on x86_64-unknown-linux-gnu and plan to commit this shortly. Ian include/ChangeLog: 2009-07-24 Ian Lance Taylor * libiberty.h (crc32): Declare. libiberty/ChangeLog: 2009-07-24 Ian Lance Taylor * crc32.c: New file. * Makefile.in: Rebuild dependencies. (CFILES): Add crc32.c. (REQUIRED_OFILES): Add ./crc32.o. * functions.texi: Rebuild.