mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-22 09:49:59 +00:00
723222568e
Up to now the linkage name of a declaration was set to the name of it's underlying symbol. This patch changes that to instead honour what the DW_AT_linkage_name DWARF property says, unless the value of that property is either missing or wrong. * include/abg-ir.h (elf_symbol::get_alias_from_name): Declare new member function. * src/abg-ir.cc (elf_symbol::get_alias_from_name): Define it. * src/abg-dwarf-reader.cc (build_var_decl, build_function_decl): Once the linkage name is supposed to contain the value of the DW_AT_linkage_name attribute, set it the name of the underlying symbol only if value of DW_At_linkage_name is missing or different from the names of all the aliases of the underlying symbol. * tests/data/test-read-dwarf/test2.so.abi: Adjust. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
test0 | ||
test0.abi | ||
test0.cc | ||
test1 | ||
test1.abi | ||
test1.cc | ||
test2-0.cc | ||
test2-1.cc | ||
test2.h | ||
test2.so | ||
test2.so.abi | ||
test3.c | ||
test3.so | ||
test3.so.abi | ||
test4.c | ||
test4.so | ||
test4.so.abi | ||
test5.cc | ||
test5.o | ||
test5.o.abi | ||
test6.cc | ||
test6.so | ||
test6.so.abi | ||
test7.cc | ||
test7.so | ||
test7.so.abi | ||
test8-qualified-this-pointer.cc | ||
test8-qualified-this-pointer.so | ||
test8-qualified-this-pointer.so.abi |