libabigail/tests/data
Dodji Seketeli 5ac010cc9b Bug 28584 - Don't drop global variables that lack DW_AT_external
Clang doesn't always emit the DW_AT_external property that flags a
decl as being external.  In those cases, the DWARF reader just drops
the variable on the floor as it considers it as being "non-exported".

This patch considers that a variable decl that is at named namespace
scope is essentially "external".  Then if the variable has an ELF
symbol associated to it, then an IR node will be created for it.

The other changes are just needed adaptations due to the core change.

	* src/abg-dwarf-reader.cc (die_is_effectively_public_decl): Define
	new static function.
	(die_flag_attribute, die_is_public_decl): Adjust const-ness.
	(build_ir_node_from_die): When building an IR for a variable,
	consider the variable as being external if the variable is at
	namespace scope, even if its DIE doesn't have the DW_AT_external
	attribute.
	* tests/data/test-read-dwarf/PR28584/PR28584-smv.cc: New source
	code for a new clang-built binary.
	* tests/data/test-read-dwarf/PR28584/PR28584-smv.clang.o: New
	clang-built input binary for testing purposes.
	* tests/data/test-read-dwarf/PR28584/PR28584-smv.clang.o.abi: The
	reference output abixml.
	* tests/data/Makefile.am: Add the new test material above to
	source distribution.
	* tests/test-read-dwarf.cc (in_out_specs): Add the new test input
	to this test harness.
	* tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Adjust.
	* tests/data/test-read-dwarf/test-libandroid.so.abi: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2021-11-15 17:08:47 +01:00
..
test-abicompat symtab/dwarf-reader: allow hinting of main symbols for aliases 2021-04-02 15:54:23 +02:00
test-abidiff Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-abidiff-exit Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-alt-dwarf-file rhbz1951526 - SELF CHECK FAILED for 'gimp-2.10' 2021-06-09 18:43:02 +02:00
test-annotate Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-core-diff
test-default-supprs Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
test-diff-dwarf Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-diff-dwarf-abixml Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-diff-filter Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-diff-pkg Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-diff-suppr Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-fedabipkgdiff tests/data/test-fedabipkgdiff: Update reference output 2020-11-25 13:15:18 +01:00
test-ini Add missing newlines to end of test files. 2020-10-01 16:11:29 +02:00
test-kmi-whitelist KMI Whitelists: Add functionality to make whitelists additive 2020-01-21 18:37:43 +00:00
test-lookup-syms dwarf-reader: Fix bloom filter access in GNU_HASH section 2020-03-20 13:35:00 +01:00
test-read-dwarf Bug 28584 - Don't drop global variables that lack DW_AT_external 2021-11-15 17:08:47 +01:00
test-read-write Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-symtab symtab: Add support for MODVERSIONS (CRC checksums) 2021-04-02 16:13:13 +02:00
test-types-stability Bug 28450 - Fix cloned member function handling in DWARF 2021-11-12 18:31:28 +01:00
test-write-read-archive
Makefile.am Bug 28584 - Don't drop global variables that lack DW_AT_external 2021-11-15 17:08:47 +01:00