public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Giuliano Procida <gprocida@google.com>
To: libabigail@sourceware.org
Subject: abg-dwarf-reader.cc - trouble with GNU hash tables
Date: Thu, 19 Mar 2020 16:42:21 +0000	[thread overview]
Message-ID: <CAGvU0HkvUN8479GhSkpQEEnCEfSOnQV7MwCc-+uZoS6EQrjsmQ@mail.gmail.com> (raw)

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.

             reply	other threads:[~2020-03-19 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-19 16:42 Giuliano Procida [this message]
2020-03-20 22:22 ` Dodji Seketeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGvU0HkvUN8479GhSkpQEEnCEfSOnQV7MwCc-+uZoS6EQrjsmQ@mail.gmail.com \
    --to=gprocida@google.com \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).