libabigail/tests/data
Dodji Seketeli 5c8c049e70 Bug 19138 - Failure to relate variables address from DWARF and ELF
In this problem report libabigail's DWARF reader wrongly looks up the
address of variables (that it got from DWARF) in the .bss section of
the ELF file.  But then, in these files (generated by the Intel C++
compiler) the variables we are looking at have their addresses in the
.data1 section.

This patch changes the DWARF/ELF reader to make it look for variable
addresses in .data, .data1, .rodata and .bss sections, as it should
be.

	* include/abg-dwarf-reader.h (elf_type::ELF_TYPE_RELOCATABLE): New
	enumerator.
	* src/abg-dwarf-reader.cc (find_section): Factorize this from ...
	(find_text_section, find_bss_section): ... these.
	(find_rodata_section, find_data_section, find_data1_section):
	Define new static functions.
	(elf_file_type): Move this static function definition up.
	(read_context::{get_elf_file_type, address_is_in_section,
	get_data_section_for_variable_address}): New member functions.
	(read_context::maybe_adjust_fn_sym_address): Adjust comment.
	Adjust to use the new
	read_context::get_data_section_for_variable_address().
	* tests/data/test-types-stability/pr19138-elf0: New test input
	binary.
	* tests/data/Makefile.am: Add the new test input binary to the
	test suite.
	* tests/test-types-stability.cc (elf_paths): Take it into account.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2016-01-08 22:38:58 +01:00
..
test-abicompat Add the option of printing the file, line and column information about a type being reported. 2015-12-15 12:32:55 +01:00
test-abidiff Fix "is-anonymous" abixml property impact on some tests 2015-10-15 13:50:48 +02:00
test-alt-dwarf-file Bug 19336 - Better handle redundantly qualified reference types 2015-12-08 14:11:22 +01:00
test-core-diff Fix further reaching reverse path calculation in core diff algo 2014-02-10 15:51:09 +01:00
test-diff-dwarf Support DW_AT_count DWARF attribute 2015-11-07 23:22:19 +01:00
test-diff-dwarf-abixml Avoid canonicalizing function types too early 2015-11-09 18:33:58 +01:00
test-diff-filter Add the option of printing the file, line and column information about a type being reported. 2015-12-15 12:32:55 +01:00
test-diff-pkg Lexicographically sort added/removed base classes in change report 2016-01-07 12:50:46 +01:00
test-diff-suppr Add the option of printing the file, line and column information about a type being reported. 2015-12-15 12:32:55 +01:00
test-lookup-syms Re-build a test input file with debug info 2014-05-14 11:32:06 +02:00
test-read-dwarf Bug 19336 - Better handle redundantly qualified reference types 2015-12-08 14:11:22 +01:00
test-read-write Bug 17340 - Support pointers and references to functions 2015-09-30 21:20:42 +02:00
test-types-stability Bug 19138 - Failure to relate variables address from DWARF and ELF 2016-01-08 22:38:58 +01:00
test-write-read-archive Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
Makefile.am Bug 19138 - Failure to relate variables address from DWARF and ELF 2016-01-08 22:38:58 +01:00