]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Move dwarflint to separate directory
authorPetr Machata <pmachata@redhat.com>
Tue, 17 Aug 2010 17:34:12 +0000 (19:34 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:18 +0000 (14:55 +0200)
56 files changed:
Makefile.am
configure.ac
dwarflint/Makefile.am [new file with mode: 0644]
dwarflint/addr-record.cc [moved from src/dwarflint/addr-record.cc with 100% similarity]
dwarflint/addr-record.h [moved from src/dwarflint/addr-record.h with 100% similarity]
dwarflint/all-dies-it.hh [moved from src/dwarflint/all-dies-it.hh with 100% similarity]
dwarflint/check_debug_abbrev.cc [moved from src/dwarflint/check_debug_abbrev.cc with 100% similarity]
dwarflint/check_debug_abbrev.hh [moved from src/dwarflint/check_debug_abbrev.hh with 100% similarity]
dwarflint/check_debug_abbrev.ii [moved from src/dwarflint/check_debug_abbrev.ii with 100% similarity]
dwarflint/check_debug_aranges.cc [moved from src/dwarflint/check_debug_aranges.cc with 100% similarity]
dwarflint/check_debug_aranges.hh [moved from src/dwarflint/check_debug_aranges.hh with 100% similarity]
dwarflint/check_debug_info.cc [moved from src/dwarflint/check_debug_info.cc with 99% similarity]
dwarflint/check_debug_info.hh [moved from src/dwarflint/check_debug_info.hh with 100% similarity]
dwarflint/check_debug_info.ii [moved from src/dwarflint/check_debug_info.ii with 100% similarity]
dwarflint/check_debug_line.cc [moved from src/dwarflint/check_debug_line.cc with 99% similarity]
dwarflint/check_debug_loc_range.cc [moved from src/dwarflint/check_debug_loc_range.cc with 99% similarity]
dwarflint/check_debug_loc_range.hh [moved from src/dwarflint/check_debug_loc_range.hh with 100% similarity]
dwarflint/check_debug_pub.cc [moved from src/dwarflint/check_debug_pub.cc with 100% similarity]
dwarflint/check_dups_abstract_origin.cc [moved from src/dwarflint/check_dups_abstract_origin.cc with 99% similarity]
dwarflint/check_expected_trees.cc [moved from src/dwarflint/check_expected_trees.cc with 99% similarity]
dwarflint/check_matching_ranges.cc [moved from src/dwarflint/check_matching_ranges.cc with 100% similarity]
dwarflint/check_range_out_of_scope.cc [moved from src/dwarflint/check_range_out_of_scope.cc with 100% similarity]
dwarflint/checks.hh [moved from src/dwarflint/checks.hh with 100% similarity]
dwarflint/coverage.cc [moved from src/dwarflint/coverage.cc with 100% similarity]
dwarflint/coverage.h [moved from src/dwarflint/coverage.h with 100% similarity]
dwarflint/coverage.hh [moved from src/dwarflint/coverage.hh with 100% similarity]
dwarflint/dwarflint.cc [moved from src/dwarflint/dwarflint.cc with 100% similarity]
dwarflint/dwarflint.hh [moved from src/dwarflint/dwarflint.hh with 100% similarity]
dwarflint/expected-at.cc [moved from src/dwarflint/expected-at.cc with 100% similarity]
dwarflint/expected.hh [moved from src/dwarflint/expected.hh with 100% similarity]
dwarflint/highlevel_check.cc [moved from src/dwarflint/highlevel_check.cc with 100% similarity]
dwarflint/highlevel_check.hh [moved from src/dwarflint/highlevel_check.hh with 99% similarity]
dwarflint/low.c [moved from src/dwarflint/low.c with 99% similarity]
dwarflint/low.h [moved from src/dwarflint/low.h with 100% similarity]
dwarflint/main.cc [moved from src/dwarflint/main.cc with 99% similarity]
dwarflint/messages.cc [moved from src/dwarflint/messages.cc with 100% similarity]
dwarflint/messages.h [moved from src/dwarflint/messages.h with 100% similarity]
dwarflint/misc.h [moved from src/dwarflint/misc.h with 100% similarity]
dwarflint/options.cc [moved from src/dwarflint/config.cc with 98% similarity]
dwarflint/options.h [moved from src/dwarflint/config.h with 100% similarity]
dwarflint/pri.cc [new file with mode: 0644]
dwarflint/pri.hh [moved from src/dwarflint/pri.hh with 100% similarity]
dwarflint/readctx.c [moved from src/dwarflint/readctx.c with 100% similarity]
dwarflint/readctx.h [moved from src/dwarflint/readctx.h with 100% similarity]
dwarflint/reloc.cc [moved from src/dwarflint/reloc.cc with 100% similarity]
dwarflint/reloc.h [moved from src/dwarflint/reloc.h with 100% similarity]
dwarflint/sections.cc [moved from src/dwarflint/sections.cc with 99% similarity]
dwarflint/sections.hh [moved from src/dwarflint/sections.hh with 100% similarity]
dwarflint/sections.ii [moved from src/dwarflint/sections.ii with 100% similarity]
dwarflint/tables.cc [moved from src/dwarflint/tables.cc with 100% similarity]
dwarflint/tables.h [moved from src/dwarflint/tables.h with 100% similarity]
dwarflint/tables.hh [moved from src/dwarflint/tables.hh with 100% similarity]
dwarflint/where.c [moved from src/dwarflint/where.c with 79% similarity]
dwarflint/where.h [moved from src/dwarflint/where.h with 100% similarity]
src/Makefile.am
src/dwarflint/pri.cc [deleted file]

index 4decc55f6e25ea73cc5983c871e262eda1d62723..d5a94585a9c529a2e90bc3009793fac1744fd073 100644 (file)
@@ -31,7 +31,7 @@ pkginclude_HEADERS = version.h
 
 # Add doc back when we have some real content.
 SUBDIRS = config m4 lib libelf libebl libdwfl libdw libcpu libasm backends \
-         src po tests
+         src po tests dwarflint
 
 EXTRA_DIST = elfutils.spec GPG-KEY NOTES EXCEPTION
 
index 9de6f5ec47d1f5d219b6d246a5359c3865fe3248..631194bc1a34972dcc56c119ee83b87f00302221 100644 (file)
@@ -232,7 +232,7 @@ dnl CPU-specific backend libraries.
 AC_CONFIG_FILES([backends/Makefile])
 
 dnl Tools.
-AC_CONFIG_FILES([src/Makefile po/Makefile.in])
+AC_CONFIG_FILES([src/Makefile po/Makefile.in dwarflint/Makefile])
 
 dnl Test suite.
 AM_CONDITIONAL(STANDALONE, false)dnl Used in tests/Makefile.am, which see.
diff --git a/dwarflint/Makefile.am b/dwarflint/Makefile.am
new file mode 100644 (file)
index 0000000..cb0d2b8
--- /dev/null
@@ -0,0 +1,104 @@
+## Process this file with automake to create Makefile.in
+##
+## Copyright (C) 1996-2010 Red Hat, Inc.
+## This file is part of Red Hat elfutils.
+##
+## Red Hat elfutils is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by the
+## Free Software Foundation; version 2 of the License.
+##
+## Red Hat elfutils is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License along
+## with Red Hat elfutils; if not, write to the Free Software Foundation,
+## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
+##
+## Red Hat elfutils is an included package of the Open Invention Network.
+## An included package of the Open Invention Network is a package for which
+## Open Invention Network licensees cross-license their patents.  No patent
+## license is granted, either expressly or impliedly, by designation as an
+## included package.  Should you wish to participate in the Open Invention
+## Network licensing program, please visit www.openinventionnetwork.com
+## <http://www.openinventionnetwork.com>.
+##
+include $(top_srcdir)/config/eu.am
+DEFS += $(YYDEBUG) -DDEBUGPRED=@DEBUGPRED@ \
+       -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
+INCLUDES += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
+           -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
+           -I$(srcdir)/../libasm
+
+AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
+
+no_mudflap.os = -fmudflap
+
+bin_PROGRAMS = dwarflint
+
+dwarflint_SOURCES = main.cc \
+                   dwarflint.cc dwarflint.hh misc.h \
+                   low.c low.h \
+                   expected-at.cc expected.hh \
+                   coverage.cc coverage.h \
+                   readctx.c  readctx.h \
+                   pri.cc pri.hh \
+                   messages.cc messages.h \
+                   where.c where.h \
+                   options.cc options.h \
+                   addr-record.cc addr-record.h \
+                   reloc.cc reloc.h \
+                   tables.cc tables.hh tables.h \
+                   all-dies-it.hh \
+                   checks.hh \
+                   sections.cc sections.hh sections.ii \
+                   highlevel_check.cc highlevel_check.hh \
+                   check_debug_abbrev.cc check_debug_abbrev.hh check_debug_abbrev.ii \
+                   check_debug_info.cc check_debug_info.hh check_debug_info.ii \
+                   check_debug_line.cc \
+                   check_debug_pub.cc \
+                   check_debug_loc_range.cc check_debug_loc_range.hh \
+                   check_debug_aranges.cc check_debug_aranges.hh \
+                   check_matching_ranges.cc \
+                   check_range_out_of_scope.cc \
+                   check_expected_trees.cc \
+                   check_dups_abstract_origin.cc \
+                   ../src/dwarfstrings.c
+
+if BUILD_STATIC
+libasm = ../libasm/libasm.a
+libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
+libelf = ../libelf/libelf.a
+else
+libasm = ../libasm/libasm.so
+libdw = ../libdw/libdw.so
+libelf = ../libelf/libelf.so
+endif
+libebl = ../libebl/libebl.a
+libeu = ../lib/libeu.a
+
+# XXX later the C++ stuff will be in libdw.so directly
+libdwpp = ../libdw/libdwpp.a $(libdw)
+
+dwarflint_LDADD  = $(libebl) $(libelf) $(libdwpp) $(libeu) $(libmudflap) -ldl
+
+installcheck-binPROGRAMS: $(bin_PROGRAMS)
+       bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
+         case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+          *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+         esac; \
+         f=`echo "$$p" | \
+            sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+         for opt in --help --version; do \
+           if LD_LIBRARY_PATH=$(DESTDIR)$(libdir) \
+              $(DESTDIR)$(bindir)/$$f $$opt > c$${pid}_.out 2> c$${pid}_.err \
+                && test -n "`cat c$${pid}_.out`" \
+                && test -z "`cat c$${pid}_.err`"; then :; \
+           else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+         done; \
+       done; rm -f c$${pid}_.???; exit $$bad
+
+CLEANFILES += *.gconv
+
+MAINTAINERCLEANFILES = 
similarity index 99%
rename from src/dwarflint/check_debug_info.cc
rename to dwarflint/check_debug_info.cc
index 9ae820f1edd8581c1a8880a5e7103cd61a61c02e..25f305aaf2e591b870c92e64b3fb185557ed5f03 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "messages.h"
 #include "pri.hh"
-#include "config.h"
+#include "options.h"
 #include "sections.hh"
 #include "check_debug_loc_range.hh"
 #include "check_debug_abbrev.hh"
similarity index 99%
rename from src/dwarflint/check_debug_line.cc
rename to dwarflint/check_debug_line.cc
index a3947f20f0a834f60626fa2e5b1ac655c155b988..8a4deceaa834619cd3e22be1f562ef9650b6ddb4 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <dwarf.h>
 #include "../libdw/known-dwarf.h"
-#include "dwarfstrings.h"
+#include "../src/dwarfstrings.h"
 
 #include <sstream>
 
similarity index 99%
rename from src/dwarflint/check_debug_loc_range.cc
rename to dwarflint/check_debug_loc_range.cc
index 26289ae7b59c599013bcd7fc6e7fc880de1ecd44..633e219a2ace566cd9afad32ed8496c61d47dfdc 100644 (file)
 #include "../libdw/dwarf.h"
 
 #include "low.h"
-#include "config.h"
+#include "options.h"
 #include "check_debug_loc_range.hh"
 #include "check_debug_info.hh"
 #include "sections.hh"
-#include "dwarf-opcodes.h"
+#include "../src/dwarf-opcodes.h"
 #include "pri.hh"
 
 namespace
similarity index 99%
rename from src/dwarflint/check_dups_abstract_origin.cc
rename to dwarflint/check_dups_abstract_origin.cc
index a514d2682794023b5d52962ed450525f38423545..f85f574ee2f1195f95184fae67816ba35701fe25 100644 (file)
@@ -35,7 +35,7 @@
 #endif
 
 #include "highlevel_check.hh"
-#include "dwarfstrings.h"
+#include "../src/dwarfstrings.h"
 #include "all-dies-it.hh"
 #include "pri.hh"
 #include "messages.h"
similarity index 99%
rename from src/dwarflint/check_expected_trees.cc
rename to dwarflint/check_expected_trees.cc
index 51e980b19543f24e2350a09d74000fa0fe7e292b..74b8903ec9d54b48b3b53d8a8aabb11c4a2a1e1b 100644 (file)
@@ -5,7 +5,7 @@
 #include "check_debug_info.hh"
 #include "highlevel_check.hh"
 #include "expected.hh"
-#include "dwarfstrings.h"
+#include "../src/dwarfstrings.h"
 #include "../libdw/c++/dwarf-knowledge.cc"
 #include "pri.hh"
 
similarity index 100%
rename from src/dwarflint/checks.hh
rename to dwarflint/checks.hh
similarity index 99%
rename from src/dwarflint/highlevel_check.hh
rename to dwarflint/highlevel_check.hh
index dcc9e0b36703861db155363d09da55ba2e61c2bd..91ad2dd8509b4d237598a61f3e541088924be777 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 
 #include "checks.hh"
-#include "config.h"
+#include "options.h"
 #include "c++/dwarf"
 #include "../libdwfl/libdwfl.h"
 
similarity index 99%
rename from src/dwarflint/low.c
rename to dwarflint/low.c
index 6766d4dedc677e4ac40356a90403eddbbf655a55..e73fbe9314b871c171c44fe611cef241db1579bd 100644 (file)
 
 #include "../libdw/dwarf.h"
 #include "../libebl/libebl.h"
-#include "dwarfstrings.h"
+#include "../src/dwarfstrings.h"
 #include "low.h"
 #include "readctx.h"
-#include "config.h"
+#include "options.h"
 #include "tables.h"
 
 #define PRI_CU "CU 0x%" PRIx64
similarity index 100%
rename from src/dwarflint/low.h
rename to dwarflint/low.h
similarity index 99%
rename from src/dwarflint/main.cc
rename to dwarflint/main.cc
index c79a4e86117cad7965778745fe9268762ab8e528..721116f997a75d98765643797fe653018da02ac9 100644 (file)
@@ -34,7 +34,7 @@
 #include <iostream>
 
 #include "low.h"
-#include "config.h"
+#include "options.h"
 #include "dwarflint.hh"
 #include "readctx.h"
 #include "checks.hh"
similarity index 100%
rename from src/dwarflint/misc.h
rename to dwarflint/misc.h
similarity index 98%
rename from src/dwarflint/config.cc
rename to dwarflint/options.cc
index ab878646b2cc0361972fefc78151f448aef547e7..ff3b5e2cd2097d349b99c52a427abbd8cef6b886 100644 (file)
@@ -23,7 +23,7 @@
    Network licensing program, please visit www.openinventionnetwork.com
    <http://www.openinventionnetwork.com>.  */
 
-#include "config.h"
+#include "options.h"
 
 /* If true, we accept silently files without debuginfo.  */
 bool tolerate_nodebug = false;
similarity index 100%
rename from src/dwarflint/config.h
rename to dwarflint/options.h
diff --git a/dwarflint/pri.cc b/dwarflint/pri.cc
new file mode 100644 (file)
index 0000000..fb9a951
--- /dev/null
@@ -0,0 +1,75 @@
+/* Pedantic checking of DWARF files
+   Copyright (C) 2008,2009,2010 Red Hat, Inc.
+   This file is part of Red Hat elfutils.
+
+   Red Hat elfutils is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by the
+   Free Software Foundation; version 2 of the License.
+
+   Red Hat elfutils is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License along
+   with Red Hat elfutils; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
+
+   Red Hat elfutils is an included package of the Open Invention Network.
+   An included package of the Open Invention Network is a package for which
+   Open Invention Network licensees cross-license their patents.  No patent
+   license is granted, either expressly or impliedly, by designation as an
+   included package.  Should you wish to participate in the Open Invention
+   Network licensing program, please visit www.openinventionnetwork.com
+   <http://www.openinventionnetwork.com>.  */
+
+#include "../src/dwarfstrings.h"
+#include "pri.hh"
+#include <sstream>
+
+std::ostream &
+pri::operator << (std::ostream &os, pri::pribase const &obj)
+{
+  return os << obj.m_s;
+}
+
+pri::attr::attr (int attr_name)
+  : pribase (dwarf_attr_string (attr_name))
+{}
+
+pri::form::form (int attr_form)
+  : pribase (dwarf_form_string (attr_form))
+{}
+
+pri::tag::tag (int die_tag)
+  : pribase (dwarf_tag_string (die_tag))
+{}
+
+pri::locexpr_opcode::locexpr_opcode (int opcode)
+  : pribase (dwarf_locexpr_opcode_string (opcode))
+{}
+
+std::ostream &
+pri::operator << (std::ostream &os, pri::ref const &obj)
+{
+  std::stringstream ss;
+  ss << std::hex << "DIE " << obj.off;
+  return os << ss.str ();
+}
+
+std::ostream &
+pri::operator << (std::ostream &os, pri::hex const &obj)
+{
+  std::stringstream ss;
+  if (obj.pre)
+    ss << obj.pre << " ";
+  ss << std::hex << "0x" << obj.value;
+  return os << ss.str ();
+}
+
+std::ostream &
+pri::operator << (std::ostream &os, pri::range const &obj)
+{
+  return os << "[" << pri::addr (obj.start)
+           << ", " << pri::addr (obj.end) << ")";
+}
similarity index 100%
rename from src/dwarflint/pri.hh
rename to dwarflint/pri.hh
similarity index 100%
rename from src/dwarflint/readctx.c
rename to dwarflint/readctx.c
similarity index 100%
rename from src/dwarflint/readctx.h
rename to dwarflint/readctx.h
similarity index 100%
rename from src/dwarflint/reloc.cc
rename to dwarflint/reloc.cc
similarity index 100%
rename from src/dwarflint/reloc.h
rename to dwarflint/reloc.h
similarity index 99%
rename from src/dwarflint/sections.cc
rename to dwarflint/sections.cc
index 3a3ba252897e6e19dff8a16c3b35a1d511bce6de..a4b51db71a7a7e5c003c628bc1320e1bc42eef58 100644 (file)
@@ -35,7 +35,7 @@
 #include "sections.hh"
 #include "messages.h"
 #include "pri.hh"
-#include "config.h"
+#include "options.h"
 
 namespace
 {
similarity index 100%
rename from src/dwarflint/tables.cc
rename to dwarflint/tables.cc
similarity index 100%
rename from src/dwarflint/tables.h
rename to dwarflint/tables.h
similarity index 100%
rename from src/dwarflint/tables.hh
rename to dwarflint/tables.hh
similarity index 79%
rename from src/dwarflint/where.c
rename to dwarflint/where.c
index 3bfe0f606db281c9d4b9d26b35aaa939ba7d4037..3e28456561acf5f69897f0849bf7583907568749 100644 (file)
@@ -1,5 +1,30 @@
+/* Pedantic checking of DWARF files
+   Copyright (C) 2008,2009,2010 Red Hat, Inc.
+   This file is part of Red Hat elfutils.
+
+   Red Hat elfutils is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by the
+   Free Software Foundation; version 2 of the License.
+
+   Red Hat elfutils is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License along
+   with Red Hat elfutils; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
+
+   Red Hat elfutils is an included package of the Open Invention Network.
+   An included package of the Open Invention Network is a package for which
+   Open Invention Network licensees cross-license their patents.  No patent
+   license is granted, either expressly or impliedly, by designation as an
+   included package.  Should you wish to participate in the Open Invention
+   Network licensing program, please visit www.openinventionnetwork.com
+   <http://www.openinventionnetwork.com>.  */
+
 #include "where.h"
-#include "config.h"
+#include "options.h"
 
 #include <inttypes.h>
 #include <assert.h>
similarity index 100%
rename from src/dwarflint/where.h
rename to dwarflint/where.h
index 26486b02f0c68dfaaaf832f546c8201f6c986980..f2b22d8dfa958f9fc64733bab638a57c553afea2 100644 (file)
@@ -46,7 +46,7 @@ base_cpu = @base_cpu@
 
 bin_PROGRAMS = readelf nm size strip ld elflint findtextrel addr2line \
               elfcmp objdump ranlib strings ar unstrip \
-              dwarflint dwarfcmp
+              dwarfcmp
 
 noinst_PROGRAMS = dwarfcmp-test
 
@@ -78,35 +78,6 @@ dwarfcmp_test_CPPFLAGS = -DTEST
 dwarfcmp_test_SOURCES = $(dwarfcmp_SOURCES)
 dwarfcmp_test_LDADD = $(dwarfcmp_LDADD)
 
-dwarflint_SOURCES = dwarfstrings.c \
-                   dwarflint/main.cc \
-                   dwarflint/dwarflint.cc dwarflint/dwarflint.hh dwarflint/misc.h \
-                   dwarflint/low.c dwarflint/low.h \
-                   dwarflint/expected-at.cc dwarflint/expected.hh \
-                   dwarflint/coverage.cc dwarflint/coverage.h \
-                   dwarflint/readctx.c  dwarflint/readctx.h \
-                   dwarflint/pri.cc dwarflint/pri.hh \
-                   dwarflint/messages.cc dwarflint/messages.h \
-                   dwarflint/where.c dwarflint/where.h \
-                   dwarflint/config.cc dwarflint/config.h \
-                   dwarflint/addr-record.cc dwarflint/addr-record.h \
-                   dwarflint/reloc.cc dwarflint/reloc.h \
-                   dwarflint/tables.cc dwarflint/tables.hh dwarflint/tables.h \
-                   dwarflint/all-dies-it.hh \
-                   dwarflint/checks.hh \
-                   dwarflint/sections.cc dwarflint/sections.hh dwarflint/sections.ii \
-                   dwarflint/highlevel_check.cc dwarflint/highlevel_check.hh \
-                   dwarflint/check_debug_abbrev.cc dwarflint/check_debug_abbrev.hh dwarflint/check_debug_abbrev.ii \
-                   dwarflint/check_debug_info.cc dwarflint/check_debug_info.hh dwarflint/check_debug_info.ii \
-                   dwarflint/check_debug_line.cc \
-                   dwarflint/check_debug_pub.cc \
-                   dwarflint/check_debug_loc_range.cc dwarflint/check_debug_loc_range.hh \
-                   dwarflint/check_debug_aranges.cc dwarflint/check_debug_aranges.hh \
-                   dwarflint/check_matching_ranges.cc \
-                   dwarflint/check_range_out_of_scope.cc \
-                   dwarflint/check_expected_trees.cc \
-                   dwarflint/check_dups_abstract_origin.cc
-
 readelf_SOURCES = readelf.c dwarfstrings.c
 
 noinst_HEADERS = ld.h symbolhash.h sectionhash.h versionhash.h \
@@ -164,7 +135,6 @@ strings_LDADD = $(libelf) $(libeu) $(libmudflap)
 ar_LDADD = libar.a $(libelf) $(libeu) $(libmudflap)
 unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(libmudflap) -ldl
 dwarfcmp_LDADD = $(libdwpp) $(libmudflap) -ldl
-dwarflint_LDADD  = $(libebl) $(libelf) $(libdwpp) $(libeu) $(libmudflap) -ldl
 
 ldlex.o: ldscript.c
 ldlex_no_Werror = yes
diff --git a/src/dwarflint/pri.cc b/src/dwarflint/pri.cc
deleted file mode 100644 (file)
index 1beb799..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "dwarfstrings.h"
-#include "pri.hh"
-#include <sstream>
-
-std::ostream &
-pri::operator << (std::ostream &os, pri::pribase const &obj)
-{
-  return os << obj.m_s;
-}
-
-pri::attr::attr (int attr_name)
-  : pribase (dwarf_attr_string (attr_name))
-{}
-
-pri::form::form (int attr_form)
-  : pribase (dwarf_form_string (attr_form))
-{}
-
-pri::tag::tag (int die_tag)
-  : pribase (dwarf_tag_string (die_tag))
-{}
-
-pri::locexpr_opcode::locexpr_opcode (int opcode)
-  : pribase (dwarf_locexpr_opcode_string (opcode))
-{}
-
-std::ostream &
-pri::operator << (std::ostream &os, pri::ref const &obj)
-{
-  std::stringstream ss;
-  ss << std::hex << "DIE " << obj.off;
-  return os << ss.str ();
-}
-
-std::ostream &
-pri::operator << (std::ostream &os, pri::hex const &obj)
-{
-  std::stringstream ss;
-  if (obj.pre)
-    ss << obj.pre << " ";
-  ss << std::hex << "0x" << obj.value;
-  return os << ss.str ();
-}
-
-std::ostream &
-pri::operator << (std::ostream &os, pri::range const &obj)
-{
-  return os << "[" << pri::addr (obj.start)
-           << ", " << pri::addr (obj.end) << ")";
-}