]> git.ipfire.org Git - thirdparty/elfutils.git/commit
dwarflint: check_linkage_external_die keep symbol table and double check.
authorMark Wielaard <mjw@redhat.com>
Fri, 8 Apr 2011 09:30:58 +0000 (11:30 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 8 Apr 2011 09:38:43 +0000 (11:38 +0200)
commit5d91a0bf01b7c852e4e578524ee19d8682de5653
treea9f58feb90670238e0bb0b350e9f643f2196acfe
parent6a0cc8997d4554f5a64b406cd951a1b5e547d759
dwarflint: check_linkage_external_die keep symbol table and double check.

We pull the symbol table from the dwarf file and check when a linkage_name
is set that the symbol table contains that name and is marked not marked
local, with the following exceptions:

- No symbol in table, OK, if not a defining or const object.
  Or GNU extension, anonymous structs can have a linkage_name.
- Symbol in table marked local, OK if not a defining object
  and marked external.  Which means it comes from some external
  symbol table.
dwarflint/check_linkage_external_die.cc