abg-dwarf-reader.cc - trouble with GNU hash tables
Giuliano Procida
gprocida@google.com
Thu Mar 19 16:42:21 GMT 2020
Looking up symbols in shared objects with .gnu.hash sections doesn't
always work. There is something not right with the Bloom filter code.
Testing notes follow. Ideally we should create files targeting a
diversity of architectures (word size, endianness, special ones like
Alpha and S390).
for y in {0..999}; do echo $(printf "int x%03d = $y;" $y); done > extern.c
gcc -g -Wall -W -fPIC --shared -c extern.c -o extern.o
ld -fPIC --shared --soname foo extern.o -o extern.so
for y in {0..999}; do sym=$(printf "x%03d" $y); build/tools/abisym
extern.so "$sym"; done | grep -c ^could
--> should be 0
Giuliano.
More information about the Libabigail
mailing list