mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 18:22:08 +00:00
3cb34e65df
MODVERSIONS CRCs are 32-bit hashes of strings representing C type elements or typed symbols. The hashes are calculated using a 32-bit CRC, hence the name. The kernel module loading code (implicitly) truncates any provided CRC value to 32 bits before comparing it with anything. When support was added to libabigail, values up to 64 bits wide were supported. This change narrows libabigail's concept of Linux CRC to 32 bits. No tests are affected. * include/abg-ir.h (elf_symbol::elf_symbol): Change CRC type from optional<uint64_t> to optional<uint32_t>. (elf_symbol::create): Likewise. (elf_symbol::get_crc): Likewise. (elf_symbol::set_crc): Likewise. * src/abg-ir.cc (elf_symbol::priv) Change CRC type from optional<uint64_t> to optional<uint32_t>. (elf_symbol::priv::priv): Likewise. (elf_symbol::elf_symbol): Likewise. (elf_symbol::create): Likewise. (elf_symbol::get_crc): Likewise. (elf_symbol::set_crc): Likewise. * src/abg-reporter-priv.cc (maybe_report_diff_for_symbol): Change CRC type from optional<uint64_t> to optional<uint32_t>. * src/abg-symtab-reader.cc (symtab::load_): Change crc_values value type from uint64_t to uint32_t. Signed-off-by: Giuliano Procida <gprocida@google.com> |
||
---|---|---|
.. | ||
abg-comp-filter.h | ||
abg-comparison.h | ||
abg-config.h | ||
abg-corpus.h | ||
abg-ctf-reader.h | ||
abg-cxx-compat.h | ||
abg-diff-utils.h | ||
abg-dwarf-reader.h | ||
abg-elf-reader-common.h | ||
abg-fwd.h | ||
abg-hash.h | ||
abg-ini.h | ||
abg-interned-str.h | ||
abg-ir.h | ||
abg-libxml-utils.h | ||
abg-reader.h | ||
abg-regex.h | ||
abg-reporter.h | ||
abg-sptr-utils.h | ||
abg-suppression.h | ||
abg-tools-utils.h | ||
abg-traverse.h | ||
abg-version.h.in | ||
abg-viz-common.h | ||
abg-viz-dot.h | ||
abg-viz-svg.h | ||
abg-workers.h | ||
abg-writer.h | ||
Makefile.am |