mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-20 17:00:36 +00:00
12c777681d
* include/abg-dwarf-reader.h (symbol_type, symbol_binding): New enums. (operator<<): Declare new overloads for the new enums above. (lookup_symbol_from_elf, lookup_public_function_symbol_from_elf): Declare new entry points. * src/abg-dwarf-reader.cc (lookup_symbol_from_elf) (lookup_public_function_symbol_from_elf) (lookup_public_variable_symbol_from_elf): Define new static functions. (read_context::elf_{module_, handle}_): New data members. (read_context::{elf_module, elf_handle}): New accessors. (read_context::load_debug_info): Store the elf module into read_context::_elf_module_. Adjust. (read_context::{lookup_symbol_from_elf, lookup_public_function_symbol_from_elf, lookup_public_variable_symbol_from_elf}): New member functions. (lookup_symbol_from_elf, lookup_public_function_symbol_from_elf) (operator<<): Define public entry points. * tools/bisym.cc: New tool to lookup a symbol in an elf file. * tools/Makefile.am: Add the bisym.cc source file to the distribution and arrange to compile it into a 'bisym' executable. * tests/test-lookup-syms.cc: New test harness. * tests/data/test-lookup-syms/test0-report.txt: New test input for the harness above. * tests/data/test-lookup-syms/test0.cc: Likewise. * tests/data/test-lookup-syms/test0.o: Likewise * tests/data/test-lookup-syms/test01-report.txt: Likewise. * tests/data/test-lookup-syms/test02-report.txt: Likewise. * tests/Makefile.am: Build the new runtestlookupsyms test and add the new files to the distribution. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
h=$(abs_srcdir)
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libtoolsutils.la
|
|
libtoolsutils_la_SOURCES= \
|
|
$(h)/abg-tools-utils.h \
|
|
$(h)/abg-tools-utils.cc
|
|
|
|
bin_PROGRAMS = biar bidiff bilint bidw bisym
|
|
|
|
biar_SOURCES = $(h)/biar.cc
|
|
biardir = $(bindir)
|
|
biar_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
biar_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bidiff_SOURCES = $(h)/bidiff.cc
|
|
bidiffdir = $(bindir)
|
|
bidiff_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bidiff_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bilint_SOURCES = $(h)/bilint.cc
|
|
bilintdir = $(bindir)
|
|
bilint_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bilint_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bidw_SOURCES = $(h)/bidw.cc
|
|
bidwdir = $(bindir)
|
|
bidw_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bidw_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bisym_SOURCES = $(h)/bisym.cc
|
|
bisymdir = $(bindir)
|
|
bisym_LDFLAGS = $(abs_top_builddir)/src/libabigail.la
|
|
|
|
AM_CPPFLAGS=-I$(abs_top_srcdir)/include -I$(abs_top_srcdir)/tools
|