diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-09 19:11:53 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-02-23 16:56:58 +0100 |
| commit | 5609b3af497c44d980aad2bc7d6332dedd7974e7 (patch) | |
| tree | 132a58bfe8ba5f582cddd9e0fe7625b5abb8da01 /lib/subdir.am | |
| parent | 4fe016fe133d704c733e5e1e333075fffeec34de (diff) | |
lib/clippy: add libelf wrapper
This adds _clippy.ELFFile, which provides a fast wrapper around libelf.
The API is similar to / a subset of pyelfutils, which unfortunately is
painfully slow (to the tune of minutes instead of seconds.)
The idea is that xrefs can be read out of ELF files by reading out the
"xref_array" section or "FRRouting/XREF" note.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/subdir.am')
| -rw-r--r-- | lib/subdir.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/subdir.am b/lib/subdir.am index d5ffa08546..15c6492140 100644 --- a/lib/subdir.am +++ b/lib/subdir.am @@ -410,7 +410,7 @@ lib_grammar_sandbox_LDADD = \ lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY lib_clippy_CFLAGS = $(PYTHON_CFLAGS) -lib_clippy_LDADD = $(PYTHON_LIBS) $(UST_LIBS) +lib_clippy_LDADD = $(PYTHON_LIBS) $(UST_LIBS) -lelf lib_clippy_LDFLAGS = -export-dynamic lib_clippy_SOURCES = \ lib/jhash.c \ @@ -420,9 +420,11 @@ lib_clippy_SOURCES = \ lib/command_parse.y \ lib/command_py.c \ lib/defun_lex.l \ + lib/elf_py.c \ lib/graph.c \ lib/libfrr_trace.c \ lib/memory.c \ + lib/typesafe.c \ lib/vector.c \ # end |
