libabigail/include
Giuliano Procida 3cb34e65df Narrow Linux symbol CRCs to 32 bits
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>
2022-11-17 11:09:05 +01:00
..
abg-comp-filter.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-comparison.h comparison: Ensure that fn parms with basic types can't be redundant 2022-09-22 01:46:20 +02:00
abg-config.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-corpus.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-ctf-reader.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-cxx-compat.h optional: minor improvements 2022-06-30 18:30:58 +02:00
abg-diff-utils.h abg-diff-utils: fix typo in comments 2022-10-17 13:07:11 +02:00
abg-dwarf-reader.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-elf-reader-common.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-fwd.h ir, writer: Go back to canonicalizing typedefs in the IR 2022-09-20 11:43:34 +02:00
abg-hash.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-ini.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-interned-str.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-ir.h Narrow Linux symbol CRCs to 32 bits 2022-11-17 11:09:05 +01:00
abg-libxml-utils.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-reader.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-regex.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-reporter.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-sptr-utils.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-suppression.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-tools-utils.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-traverse.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-version.h.in abidw: Add --abixml-version 2021-11-12 18:31:28 +01:00
abg-viz-common.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-viz-dot.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-viz-svg.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-workers.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
abg-writer.h Update year in copyright notice 2022-06-21 12:58:57 +02:00
Makefile.am Move dwarf_reader::status facilities to an abigail::elf_reader namespace 2021-11-15 11:08:53 +01:00