]> sourceware.org Git - libabigail.git/commit
symtab: add support for CRC values from __kcrctab
authorAleksei Vetrov <vvvvvv@google.com>
Fri, 18 Nov 2022 09:09:07 +0000 (09:09 +0000)
committerDodji Seketeli <dodji@redhat.com>
Fri, 18 Nov 2022 14:10:14 +0000 (15:10 +0100)
commitc6ac7db457a36939efe81e2e5794d8892344a8db
treedf37fb2b831834745432ff62e57d2cfb970e5491
parent102758ad9ac2aa7835d10d0f72808ddd0aef1c9e
symtab: add support for CRC values from __kcrctab

New kernels changed the format of storing CRC values from absolute
symbol value to the address in __kcrctab or __kcrctab_gpl section.
This change adds support for CRC values described in this format.

* src/abg-elf-helpers.h (get_crc_for_symbol): Defined new
helper function to extract CRC from ELF symbol.
* src/abg-elf-helpers.cc (get_crc_for_symbol): Implemented this
function with support of old and new CRC values format.
* src/abg-symtab-reader.cc (symtab::load_): Used the new
function when building CRC values map.

Change-Id: I7de5c737d5caaef0c5b7b2ea0d448368889a16be
Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-elf-helpers.cc
src/abg-elf-helpers.h
src/abg-symtab-reader.cc
This page took 0.031111 seconds and 5 git commands to generate.