mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-22 16:56:57 +00:00
The Git repository of the Libabigail Project
In binaries originating from OCaml on s390x or ppcle platforms, it can happen that a function symbol aliases a variable symbol. By default, the ABIXML reader doesn't expect that. It expects that all aliases of a symbol are symbols of the same kind as their target. This patch relaxes that constraint from the ABIXML reader. It teaches read_symbol_db_from_input how to resolve unresolved function (resp. variable) symbol aliases to variable (resp. function) symbols. * src/abg-reader.cc (typedef string_strings_map_type): Define new typedef. (resolve_symbol_aliases): Define new function. (build_elf_symbol_db): Add two new parameters to carry unresolved function and variable symbol aliases. When a symbol alias can't resolve to any of the symbols of its kind (function or variable) then stage the alias away in the set of unresolved aliases. That set is then going to be resolved later. (read_symbol_db_from_input): Add two new parameters to carry unresolved function and variable symbol aliases. Pass them down to build_elf_symbol_db. (reader::read_corpus): Adjust the invocation of read_symbol_db_from_input to get the sets of unresolved function & variable symbol aliases. Invoke the new resolve_symbol_aliases the unresolved function & variable aliases. * tests/data/test-diff-pkg/PR29610/guestfs-tools-1.51.6-2.el9.s390x-self-check-report.txt: New test reference output. * tests/data/test-diff-pkg/PR29610/guestfs-tools-1.51.6-2.el9.s390x.rpm: New binary test input. * tests/data/test-diff-pkg/PR29610/guestfs-tools-debuginfo-1.51.6-2.el9.s390x.rpm: Likewise. * tests/data/Makefile.am: Add this new test material to source distribution. * tests/test-diff-pkg.cc (in_out_specs): Add the new test input to this test harness. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.github | ||
autoconf-archive | ||
bash-completion | ||
doc | ||
docker | ||
include | ||
m4 | ||
patches | ||
relicensing-scripts | ||
scripts | ||
src | ||
tests | ||
tools | ||
.clang-format | ||
.gitignore | ||
.mailmap | ||
abigail.m4 | ||
ABIXML-FORMAT-VERSIONS | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
configure.ac | ||
CONTRIBUTING | ||
default.abignore | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
license-change-2020.txt | ||
LICENSE.txt | ||
ltmain.sh | ||
Makefile.am | ||
NEWS | ||
README | ||
README-DOCKER.md | ||
release-text-template.txt | ||
update-copyright.sh | ||
VISIBILITY |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, functions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to compare two ABI Corpora (apparently the plural of corpus is copora, heh, that's cool), provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.