• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Process this file with automake to create Makefile.in
2##
3## Copyright (C) 1996-2019 Red Hat, Inc.
4## This file is part of elfutils.
5##
6## This file is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 3 of the License, or
9## (at your option) any later version.
10##
11## elfutils is distributed in the hope that it will be useful, but
12## WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program.  If not, see <http://www.gnu.org/licenses/>.
18##
19include $(top_srcdir)/config/eu.am
20BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
21
22AM_CPPFLAGS += -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
23	    -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
24	    -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
25	    -I$(top_srcdir)/lib -I..
26AM_LDFLAGS = -Wl,-rpath-link,../libasm:../libdw:../libelf
27
28if TESTS_RPATH
29AM_LDFLAGS += -Wl,-rpath,$(BUILD_RPATH)
30tests_rpath = yes
31else
32tests_rpath = no
33endif
34
35check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
36		  showptable update1 update2 update3 update4 test-nlist \
37		  show-die-info get-files next-files get-lines next-lines \
38		  get-pubnames \
39		  get-aranges allfcts line2addr addrscopes funcscopes \
40		  show-abbrev hash newscn ecp dwflmodtest \
41		  find-prologues funcretval allregs rdwrmmap \
42		  dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
43		  dwfl-addr-sect dwfl-bug-report early-offscn \
44		  dwfl-bug-getmodules dwarf-getmacros dwarf-ranges addrcfi \
45		  dwarfcfi \
46		  test-flag-nobits dwarf-getstring rerequest_tag \
47		  alldts typeiter typeiter2 low_high_pc \
48		  test-elf_cntl_gelf_getshdr dwflsyms dwfllines \
49		  dwfl-report-elf-align dwfl-report-segment-contiguous \
50		  dwfl-report-offline-memory \
51		  varlocs backtrace backtrace-child \
52		  backtrace-data backtrace-dwarf debuglink debugaltlink \
53		  buildid deleted deleted-lib.so aggregate_size peel_type \
54		  vdsosyms \
55		  getsrc_die strptr newdata elfstrtab dwfl-proc-attach \
56		  elfshphehdr elfstrmerge dwelfgnucompressed elfgetchdr \
57		  elfgetzdata elfputzdata zstrptr emptyfile vendorelf \
58		  fillfile dwarf_default_lower_bound dwarf-die-addr-die \
59		  get-units-invalid get-units-split attr-integrate-skel \
60		  all-dwarf-ranges unit-info next_cfi \
61		  elfcopy addsections xlate_notes elfrdwrnop \
62		  dwelf_elf_e_machine_string \
63		  getphdrnum leb128 read_unaligned \
64		  msg_tst system-elf-libelf-test \
65		  nvidia_extended_linemap_libdw \
66		  $(asm_TESTS)
67
68asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
69	    asm-tst6 asm-tst7 asm-tst8 asm-tst9
70
71if BIARCH
72check_PROGRAMS += backtrace-child-biarch
73endif
74
75# Substitute $(COMPILE).
76backtrace-child-biarch$(EXEEXT): backtrace-child.c
77	$(AM_V_CC)$(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
78		     $(AM_CPPFLAGS) $(CPPFLAGS) \
79		     $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
80		     $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
81		     -o $@ $<
82
83if GCOV
84GCOV_FLAGS=-fprofile-arcs -ftest-coverage
85else
86GCOV_FLAGS=
87endif
88
89# test_nlist checks its own symbol table, and expects various symbols
90# to be in the order as specified in the source file. Explicitly set
91# minimal CFLAGS. But add address sanitizer if in use.
92if USE_ADDRESS_SANITIZER
93EXTRA_NLIST_CFLAGS=-fsanitize=address
94else
95EXTRA_NLIST_CFLAGS=
96endif
97
98test-nlist$(EXEEXT): test-nlist.c
99	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
100	  $(AM_CPPFLAGS) $(CPPFLAGS) \
101	  $(test_nlist_CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD)
102
103TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
104	run-ar-N.sh \
105	update1 update2 update3 update4 \
106	run-show-die-info.sh run-get-files.sh run-get-lines.sh \
107	run-next-files.sh run-next-lines.sh \
108	run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
109	run-show-abbrev.sh run-line2addr.sh hash \
110	run-large-elf-file.sh \
111	newscn run-strip-test.sh run-strip-test2.sh \
112	run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
113	run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \
114	run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
115	run-strip-test12.sh \
116	run-strip-nothing.sh run-strip-g.sh run-annobingroup.sh \
117	run-strip-groups.sh run-strip-reloc.sh run-strip-strmerge.sh \
118	run-strip-nobitsalign.sh run-strip-remove-keep.sh \
119	run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-test3.sh \
120	run-unstrip-test4.sh run-unstrip-M.sh run-elfstrmerge-test.sh \
121	run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \
122	run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
123	run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \
124	run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
125	run-find-prologues.sh run-allregs.sh run-addrcfi.sh \
126	run-dwarfcfi.sh run-nm-syms.sh \
127	run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
128	run-readelf-compressed.sh \
129	run-readelf-const-values.sh \
130	run-varlocs-self.sh run-exprlocs-self.sh \
131	run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
132	run-readelf-test4.sh run-readelf-twofiles.sh \
133	run-readelf-macro.sh run-readelf-loc.sh run-readelf-ranges.sh \
134	run-readelf-aranges.sh run-readelf-line.sh run-readelf-z.sh \
135	run-readelf-frames.sh \
136	run-readelf-n.sh \
137	run-retain.sh \
138	run-native-test.sh run-bug1-test.sh \
139	run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
140	dwfl-bug-addr-overflow run-addrname-test.sh \
141	dwfl-bug-fd-leak dwfl-bug-report dwfl-report-segment-contiguous \
142	run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
143	run-disasm-x86.sh run-disasm-x86-64.sh \
144	run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \
145	run-test-flag-nobits.sh run-prelink-addr-test.sh \
146	run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh \
147	run-readelf-d.sh run-readelf-gdb_index.sh run-unstrip-n.sh \
148	run-low_high_pc.sh run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
149	run-test-archive64.sh run-readelf-vmcoreinfo.sh \
150	run-readelf-mixed-corenote.sh run-dwfllines.sh \
151	run-readelf-variant.sh run-readelf-fat-lto.sh \
152	run-dwfl-report-elf-align.sh run-addr2line-test.sh \
153	run-dwfl-report-offline-memory.sh \
154	run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
155	run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
156	run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh run-funcretval.sh \
157	run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \
158	run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
159	run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \
160	run-backtrace-fp-core-x86_64.sh \
161	run-backtrace-fp-core-aarch64.sh \
162	run-backtrace-fp-core-ppc64le.sh \
163	run-backtrace-core-x32.sh \
164	run-backtrace-core-i386.sh run-backtrace-fp-core-i386.sh \
165	run-backtrace-core-ppc.sh \
166	run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
167	run-backtrace-core-aarch64.sh run-backtrace-core-sparc.sh \
168	run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
169	run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
170	run-readelf-arm-flags.sh \
171	run-readelf-addr.sh run-readelf-str.sh \
172	run-readelf-multi-noline.sh \
173	run-readelf-types.sh \
174	run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
175	run-linkmap-cut.sh run-aggregate-size.sh run-peel-type.sh \
176	vdsosyms run-readelf-A.sh \
177	run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
178	elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
179	run-elfgetchdr.sh \
180	run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
181	run-compress-test.sh \
182	run-readelf-zdebug.sh run-readelf-zdebug-rel.sh \
183	emptyfile vendorelf fillfile dwarf_default_lower_bound \
184	run-dwarf-die-addr-die.sh \
185	run-get-units-invalid.sh run-get-units-split.sh \
186	run-attr-integrate-skel.sh \
187	run-all-dwarf-ranges.sh run-unit-info.sh \
188	run-reloc-bpf.sh \
189	run-next-cfi.sh run-next-cfi-self.sh \
190	run-reverse-sections.sh run-reverse-sections-self.sh \
191	run-copyadd-sections.sh run-copymany-sections.sh \
192	run-typeiter-many.sh run-strip-test-many.sh \
193	run-strip-version.sh run-xlate-note.sh \
194	run-readelf-discr.sh \
195	run-dwelf_elf_e_machine_string.sh \
196	run-elfclassify.sh run-elfclassify-self.sh \
197	run-disasm-riscv64.sh \
198	run-pt_gnu_prop-tests.sh \
199	run-getphdrnum.sh run-test-includes.sh \
200	leb128 read_unaligned \
201	msg_tst system-elf-libelf-test \
202	$(asm_TESTS) run-disasm-bpf.sh run-low_high_pc-dw-form-indirect.sh \
203	run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
204	run-readelf-dw-form-indirect.sh run-strip-largealign.sh \
205	run-readelf-Dd.sh
206
207if !BIARCH
208export ELFUTILS_DISABLE_BIARCH = 1
209endif
210
211if !DEMANGLE
212export ELFUTILS_DISABLE_DEMANGLE = 1
213endif
214
215if LZMA
216TESTS += run-readelf-s.sh run-dwflsyms.sh
217endif
218
219if HAVE_ZSTD
220TESTS += run-readelf-compressed-zstd.sh
221endif
222
223if DEBUGINFOD
224check_PROGRAMS += debuginfod_build_id_find
225# With the dummy delegation doesn't work
226if !DUMMY_LIBDEBUGINFOD
227TESTS += run-debuginfod-dlopen.sh \
228	 run-debuginfod-artifact-running.sh \
229	 run-debuginfod-fd-prefetch-caches.sh \
230	 run-debuginfod-regex.sh \
231	 run-debuginfod-duplicate-urls.sh \
232	 run-debuginfod-file.sh \
233	 run-debuginfod-sizetime.sh \
234	 run-debuginfod-malformed.sh \
235	 run-debuginfod-negative-cache.sh \
236	 run-debuginfod-tmp-home.sh \
237	 run-debuginfod-writable.sh \
238	 run-debuginfod-no-urls.sh \
239	 run-debuginfod-query-retry.sh \
240	 run-debuginfod-extraction.sh \
241	 run-debuginfod-archive-groom.sh \
242	 run-debuginfod-archive-rename.sh \
243	 run-debuginfod-archive-test.sh \
244	 run-debuginfod-federation-sqlite.sh \
245	 run-debuginfod-federation-link.sh \
246         run-debuginfod-percent-escape.sh \
247         run-debuginfod-x-forwarded-for.sh \
248         run-debuginfod-response-headers.sh \
249         run-debuginfod-extraction-passive.sh \
250	 run-debuginfod-webapi-concurrency.sh \
251	 run-debuginfod-section.sh
252endif
253if !OLD_LIBMICROHTTPD
254# Will crash on too old libmicrohttpd
255# Too many open file descriptors confuses libmicrohttpd < 0.9.51
256TESTS += run-debuginfod-federation-metrics.sh
257endif
258endif
259
260EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
261	     run-ar-N.sh \
262	     run-show-die-info.sh run-get-files.sh run-get-lines.sh \
263	     run-next-files.sh run-next-lines.sh testfile-only-debug-line.bz2 \
264	     run-get-pubnames.sh run-get-aranges.sh \
265	     run-show-abbrev.sh run-strip-test.sh \
266	     run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
267	     testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
268	     testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
269	     testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
270	     testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
271	     testfile_class_func.bz2 testfile_nested_funcs.bz2 \
272	     testfile-lto-gcc10.bz2 \
273	     testfile-lto-gcc9.bz2 testfile-lto-gcc8.bz2 \
274	     run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
275	     run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
276	     run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
277	     run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
278	     run-strip-test12.sh \
279	     run-strip-nothing.sh run-strip-remove-keep.sh run-strip-g.sh \
280	     run-annobingroup.sh testfile-annobingroup.o.bz2 \
281	     testfile-annobingroup-i386.o.bz2 \
282	     testfile-annobingroup-x86_64.o.bz2 \
283	     run-strip-strmerge.sh run-strip-nobitsalign.sh \
284	     testfile-nobitsalign.bz2 testfile-nobitsalign.strip.bz2 \
285	     run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
286	     hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
287	     hello_m68k.ko.bz2 hello_riscv64.ko.bz2 hello_csky.ko.bz2 \
288	     run-unstrip-test.sh run-unstrip-test2.sh \
289	     testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
290	     testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
291	     run-unstrip-test4.sh testfile-strtab.bz2 \
292	     testfile-strtab.stripped.bz2 testfile-strtab.debuginfo.bz2 \
293	     run-unstrip-M.sh run-elfstrmerge-test.sh \
294	     run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
295	     run-ranlib-test3.sh run-ranlib-test4.sh \
296	     run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
297	     run-nm-syms.sh testfilesyms32.bz2 testfilesyms64.bz2 \
298	     run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
299	     run-readelf-compressed.sh \
300	     run-readelf-compressed-zstd.sh \
301	     run-readelf-const-values.sh testfile-const-values.debug.bz2 \
302	     run-addrcfi.sh run-dwarfcfi.sh \
303	     testfile11-debugframe.bz2 testfile12-debugframe.bz2 \
304	     testfileaarch64-debugframe.bz2 testfilearm-debugframe.bz2 \
305	     testfileppc32-debugframe.bz2 testfileppc64-debugframe.bz2 \
306	     testfilecsky.bz2 \
307	     run-varlocs-self.sh run-exprlocs-self.sh \
308	     run-find-prologues.sh run-allregs.sh run-native-test.sh \
309	     run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
310	     run-dwfl-addr-sect.sh run-early-offscn.sh \
311	     run-dwarf-getmacros.sh \
312	     run-dwarf-ranges.sh debug-ranges-no-lowpc.o.bz2 \
313	     testfileranges4.debug.bz2 testfileranges5.debug.bz2 \
314	     testfilesplitranges5.debug.bz2 \
315	     testfile-ranges-hello5.dwo.bz2 testfile-ranges-world5.dwo.bz2 \
316	     run-test-flag-nobits.sh \
317	     run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
318	     testfile15.bz2 testfile15.debug.bz2 \
319	     testfile16.bz2 testfile16.debug.bz2 \
320	     testfile17.bz2 testfile17.debug.bz2 \
321	     testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
322	     testfile20.bz2 testfile20.index.bz2 \
323	     testfile21.bz2 testfile21.index.bz2 \
324	     testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
325	     testfile26.bz2 testfile27.bz2 \
326	     coverage.sh test-subr.sh test-wrapper.sh debuginfod-subr.sh \
327	     run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
328	     run-readelf-test4.sh run-readelf-twofiles.sh \
329	     run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
330	     run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
331	     testfile29.bz2 testfile29.rdwr.bz2 \
332	     testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
333	     testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
334	     testfile36.bz2 testfile36.debug.bz2 \
335	     testfile37.bz2 testfile37.debug.bz2 \
336	     testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
337	     testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
338	     testfile43.bz2 \
339	     testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
340	     testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
341	     testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
342	     testfile49.bz2 testfile50.bz2 testfile51.bz2 \
343	     testfile-macros-0xff.bz2 \
344	     run-readelf-macro.sh testfilemacro.bz2 \
345	     run-readelf-loc.sh testfileloc.bz2 \
346	     splitdwarf4-not-split4.dwo.bz2 \
347	     testfile-splitdwarf4-not-split4.debug.bz2 \
348	     run-readelf-ranges.sh \
349	     run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
350	     testfile-ppc64-min-instr.bz2 \
351	     testfile-dwarf-45.source \
352	     testfile-dwarf-4.bz2 testfile-dwarf-5.bz2 \
353	     run-readelf-z.sh \
354	     run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
355	     testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
356	     testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
357	     run-readelf-arm-flags.sh testfile-arm-flags.bz2 \
358	     run-readelf-addr.sh run-readelf-str.sh \
359	     run-readelf-multi-noline.sh testfile_multi_noline.bz2 \
360	     run-readelf-types.sh \
361	     run-readelf-frames.sh \
362	     run-readelf-n.sh \
363	     testfile-gnu-property-note.bz2 testfile-gnu-property-note.o.bz2 \
364	     testfile_gnu_props.32le.o.bz2 \
365	     testfile_gnu_props.64le.o.bz2 \
366	     testfile_gnu_props.32be.o.bz2 \
367	     testfile_gnu_props.64be.o.bz2 \
368	     testfile-gnu-property-note-aarch64.bz2 \
369	     run-retain.sh testfile-retain.o.bz2 \
370	     run-allfcts-multi.sh \
371	     test-offset-loop.bz2 test-offset-loop.alt.bz2 \
372	     run-prelink-addr-test.sh \
373	     testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
374	     testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
375	     testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
376	     testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
377	     testfile53-32.bz2 testfile53-32.debug.bz2 \
378	     testfile53-32.prelink.bz2 testfile53-64.bz2 \
379	     testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
380	     testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
381	     testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
382	     testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
383	     testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
384	     testfile55-32.bz2 testfile55-32.debug.bz2 \
385	     testfile55-32.prelink.bz2 testfile55-64.bz2 \
386	     testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
387	     testfile56.bz2 testfile57.bz2 testfile58.bz2 \
388	     run-typeiter.sh testfile59.bz2 \
389	     run-readelf-d.sh testlib_dynseg.so.bz2 \
390	     run-readelf-Dd.sh \
391	     testfile-s390x-hash-both.bz2 \
392	     run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
393	     testfilegdbindex7.bz2 \
394	     run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
395	     testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
396	     testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
397	     testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
398	     testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
399	     testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
400	     testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
401	     testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
402	     testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
403	     testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
404	     run-readelf-variant.sh testfile-ada-variant.bz2 \
405	     run-readelf-fat-lto.sh testfile-dwarf5-fat-lto.o.bz2 \
406	     run-dwflsyms.sh \
407	     run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
408	     run-low_high_pc.sh testfile_low_high_pc.bz2 \
409	     run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
410	     run-elf_cntl_gelf_getshdr.sh \
411	     run-test-archive64.sh testarchive64.a.bz2 \
412	     testfile61.bz2 \
413	     run-readelf-vmcoreinfo.sh testfile62.bz2 \
414	     run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
415	     testfile65.bz2 testfile67.bz2 testfile68.bz2 \
416	     testfile69.core.bz2 testfile69.so.bz2 \
417	     testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
418	     run-dwfllines.sh run-dwfl-report-elf-align.sh \
419	     run-dwfl-report-offline-memory.sh \
420	     testfile-dwfl-report-elf-align-shlib.so.bz2 \
421	     testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
422	     test-core.exec.bz2 run-addr2line-test.sh \
423	     run-addr2line-i-test.sh testfile-inlines.bz2 \
424	     run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
425	     run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
426	     testfileppc32.bz2 testfileppc64.bz2 \
427	     testfiles390.bz2 testfiles390x.bz2 \
428	     testfilearm.bz2 testfileaarch64.bz2 \
429	     run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh \
430	     testfile-vars-clang-dwarf4-32.o.bz2 \
431	     testfile-vars-clang-dwarf4-64.o.bz2 \
432	     testfile-vars-clang-dwarf5-32.o.bz2 \
433	     testfile-vars-clang-dwarf5-64.o.bz2 \
434	     testfile-vars-gcc-dwarf4-32.o.bz2 \
435	     testfile-vars-gcc-dwarf4-64.o.bz2 \
436	     testfile-vars-gcc-dwarf5-32.o.bz2 \
437	     testfile-vars-gcc-dwarf5-64.o.bz2 \
438	     testfile-stridex.bz2 \
439	     testfile_const_type.c testfile_const_type.bz2 \
440	     testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
441	     testfile_parameter_ref.c testfile_parameter_ref.bz2 \
442	     testfile_entry_value.c testfile_entry_value.bz2 \
443	     testfile_implicit_value.c testfile_implicit_value.bz2 \
444	     testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
445	     addrx_constx-4.dwo.bz2 addrx_constx-5.dwo.bz2 \
446	     testfile-addrx_constx-4.bz2 testfile-addrx_constx-5.bz2 \
447	     run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
448	     run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
449	     run-backtrace-native.sh run-backtrace-native-biarch.sh \
450	     run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
451	     run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
452	     run-backtrace-fp-core-x86_64.sh \
453	     run-backtrace-core-x32.sh \
454	     run-backtrace-fp-core-aarch64.sh \
455	     backtrace.aarch64.fp.core.bz2 backtrace.aarch64.fp.exec.bz2 \
456	     backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
457	     run-backtrace-fp-core-i386.sh \
458	     backtrace.i386.fp.core.bz2 backtrace.i386.fp.exec.bz2 \
459	     run-backtrace-fp-core-ppc64le.sh \
460	     backtrace.ppc64le.fp.core.bz2 backtrace.ppc64le.fp.exec.bz2 \
461	     backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
462	     backtrace.x86_64.fp.core.bz2 backtrace.x86_64.fp.exec.bz2 \
463	     backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
464	     run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
465	     backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
466	     backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
467	     run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
468	     run-backtrace-core-aarch64.sh \
469	     backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
470	     run-backtrace-core-sparc.sh \
471	     backtrace.sparc.core.bz2 backtrace.sparc.exec.bz2 \
472	     run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
473	     testfile-backtrace-demangle.cc \
474	     testfile-backtrace-demangle.core.bz2 \
475	     run-stack-d-test.sh run-stack-i-test.sh \
476	     run-stack-demangled-test.sh \
477	     testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
478	     run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
479	     run-readelf-zdebug-rel.sh testfile-debug-rel.o.bz2 \
480	     testfile-debug-rel-g.o.bz2 testfile-debug-rel-z.o.bz2 \
481	     run-readelf-zx.sh run-readelf-zp.sh \
482	     run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
483	     linkmap-cut.bz2 linkmap-cut.core.bz2 \
484	     run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
485	     testfile-sizes3.o.bz2 testfile-sizes4.o.bz2 testfile-sizes4.s \
486	     run-peel-type.sh \
487	     run-readelf-A.sh testfileppc32attrs.o.bz2 \
488	     testfilesparc64attrs.o.bz2 testfileppc64attrs.o.bz2 \
489	     testfile-debug-types.bz2 \
490	     run-getsrc-die.sh run-strptr.sh \
491	     testfile-x32-core.bz2 testfile-x32.bz2 \
492	     backtrace.x32.core.bz2 backtrace.x32.exec.bz2 \
493	     testfile-x32-s.bz2 testfile-x32-d.bz2 testfile-x32-debug.bz2 \
494	     run-lfs-symbols.sh lfs-symbols testfile-nolfs.bz2 \
495	     testfile-zgnu32.bz2 testfile-zgnu64.bz2 \
496	     testfile-zgnu32be.bz2 testfile-zgnu64be.bz2 \
497	     run-dwelfgnucompressed.sh \
498	     testfile-zgabi32.bz2 testfile-zgabi64.bz2 \
499	     testfile-zgabi32be.bz2 testfile-zgabi64be.bz2 \
500	     run-elfgetchdr.sh run-elfgetzdata.sh run-elfputzdata.sh \
501	     run-zstrptr.sh run-compress-test.sh \
502	     run-disasm-bpf.sh \
503	     testfile-bpf-dis1.expect.bz2 testfile-bpf-dis1.o.bz2 \
504	     run-reloc-bpf.sh \
505	     testfile-bpf-reloc.expect.bz2 testfile-bpf-reloc.o.bz2 \
506	     testfile-m68k-core.bz2 testfile-m68k.bz2 testfile-m68k-s.bz2 \
507	     run-dwarf-die-addr-die.sh \
508	     run-get-units-invalid.sh run-get-units-split.sh \
509	     testfile-hello4.dwo.bz2 testfile-hello5.dwo.bz2 \
510	     testfile-splitdwarf-4.bz2 testfile-splitdwarf-5.bz2 \
511	     testfile-world5.dwo.bz2 testfile-world4.dwo.bz2 \
512	     run-attr-integrate-skel.sh \
513	     run-all-dwarf-ranges.sh testfilesplitranges4.debug.bz2 \
514	     testfile-ranges-hello.dwo.bz2 testfile-ranges-world.dwo.bz2 \
515	     run-unit-info.sh run-next-cfi.sh run-next-cfi-self.sh \
516	     testfile-riscv64.bz2 testfile-riscv64-s.bz2 \
517	     testfile-riscv64-core.bz2 \
518	     run-reverse-sections.sh run-reverse-sections-self.sh \
519	     run-copyadd-sections.sh run-copymany-sections.sh \
520	     run-large-elf-file.sh \
521	     run-typeiter-many.sh run-strip-test-many.sh \
522	     testfile-debug-rel-ppc64-g.o.bz2 \
523	     testfile-debug-rel-ppc64-z.o.bz2 \
524	     testfile-debug-rel-ppc64.o.bz2 \
525	     run-strip-version.sh testfile-version.bz2 \
526	     run-xlate-note.sh \
527	     run-readelf-discr.sh \
528	     testfile-rng.debug.bz2 testfile-urng.debug.bz2 \
529	     run-dwelf_elf_e_machine_string.sh \
530	     run-elfclassify.sh run-elfclassify-self.sh \
531	     run-disasm-riscv64.sh \
532	     testfile-riscv64-dis1.o.bz2 testfile-riscv64-dis1.expect.bz2 \
533             run-debuginfod-extraction.sh \
534             run-debuginfod-federation-link.sh \
535             run-debuginfod-federation-metrics.sh \
536             run-debuginfod-artifact-running.sh \
537             run-debuginfod-federation-sqlite.sh \
538             run-debuginfod-x-forwarded-for.sh \
539	     run-debuginfod-fd-prefetch-caches.sh \
540	     run-debuginfod-regex.sh \
541	     run-debuginfod-duplicate-urls.sh \
542	     run-debuginfod-file.sh \
543	     run-debuginfod-sizetime.sh \
544	     run-debuginfod-dlopen.sh \
545	     run-debuginfod-malformed.sh \
546	     run-debuginfod-negative-cache.sh \
547	     run-debuginfod-tmp-home.sh \
548	     run-debuginfod-writable.sh \
549	     run-debuginfod-no-urls.sh \
550	     run-debuginfod-query-retry.sh \
551	     run-debuginfod-archive-groom.sh \
552	     run-debuginfod-archive-rename.sh \
553             run-debuginfod-archive-test.sh \
554             run-debuginfod-percent-escape.sh \
555	     run-debuginfod-response-headers.sh \
556             run-debuginfod-extraction-passive.sh \
557             run-debuginfod-webapi-concurrency.sh \
558	     run-debuginfod-section.sh \
559	     debuginfod-rpms/fedora30/hello2-1.0-2.src.rpm \
560	     debuginfod-rpms/fedora30/hello2-1.0-2.x86_64.rpm \
561	     debuginfod-rpms/fedora30/hello2-debuginfo-1.0-2.x86_64.rpm \
562	     debuginfod-rpms/fedora30/hello2-debugsource-1.0-2.x86_64.rpm \
563	     debuginfod-rpms/fedora30/hello2-two-1.0-2.x86_64.rpm \
564	     debuginfod-rpms/fedora30/hello2-two-debuginfo-1.0-2.x86_64.rpm \
565	     debuginfod-rpms/fedora31/hello3-1.0-2.src.rpm \
566	     debuginfod-rpms/fedora31/hello3-1.0-2.x86_64.rpm \
567	     debuginfod-rpms/fedora31/hello3-debuginfo-1.0-2.x86_64.rpm \
568	     debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \
569	     debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \
570	     debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \
571	     debuginfod-rpms/hello2.specfile \
572	     debuginfod-rpms/hello3.specfile \
573	     debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \
574	     debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \
575	     debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \
576	     debuginfod-rpms/rhel6/hello2-two-1.0-2.i686.rpm \
577	     debuginfod-rpms/rhel7/hello2-1.0-2.src.rpm \
578	     debuginfod-rpms/rhel7/hello2-1.0-2.x86_64.rpm \
579	     debuginfod-rpms/rhel7/hello2-debuginfo-1.0-2.x86_64.rpm \
580	     debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
581	     debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
582	     debuginfod-debs/hithere-dbgsym_1.0-1_amd64.ddeb \
583	     debuginfod-debs/hithere_1.0-1.debian.tar.xz \
584	     debuginfod-debs/hithere_1.0-1.dsc \
585	     debuginfod-debs/hithere_1.0-1_amd64.deb \
586	     debuginfod-debs/hithere_1.0.orig.tar.gz \
587	     debuginfod-tars/hello-1-1-x86_64.pkg.tar.xz \
588	     debuginfod-tars/hello-debug-1-1-x86_64.pkg.tar.bz2 \
589	     debuginfod-tars/pacman-sources/PKGBUILD \
590	     debuginfod-tars/pacman-sources/README.md \
591	     debuginfod-tars/pacman-sources/hello.c \
592	     run-pt_gnu_prop-tests.sh \
593	     testfile_pt_gnu_prop.bz2 testfile_pt_gnu_prop32.bz2 \
594	     run-getphdrnum.sh testfile-phdrs.elf.bz2 \
595	     run-test-includes.sh run-low_high_pc-dw-form-indirect.sh \
596	     run-readelf-dw-form-indirect.sh testfile-dw-form-indirect.bz2 \
597	     run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
598	     testfile_nvidia_linemap.bz2 \
599	     testfile-largealign.o.bz2 run-strip-largealign.sh
600
601
602if USE_VALGRIND
603valgrind_cmd=valgrind -q --leak-check=full --error-exitcode=1
604endif
605
606
607installed_TESTS_ENVIRONMENT = libdir='$(DESTDIR)$(libdir)'; \
608			      bindir='$(DESTDIR)$(bindir)'; \
609			      LC_ALL=C; LANG=C; \
610			      VALGRIND_CMD='$(valgrind_cmd)'; \
611			      abs_srcdir='$(abs_srcdir)'; \
612			      abs_builddir='$(abs_builddir)'; \
613			      abs_top_builddir='$(abs_top_builddir)'; \
614			      export abs_srcdir; export abs_builddir; \
615			      export abs_top_builddir; \
616			      export libdir; export bindir; \
617			      export LC_ALL; export LANG; export VALGRIND_CMD; \
618			      unset DEBUGINFOD_URLS; \
619			      NM='$(NM)'; export NM; \
620			      CC='$(CC)'; export CC;
621installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
622			 installed $(tests_rpath) \
623			 '$(program_transform_name)'
624TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD='$(valgrind_cmd)'; \
625		    abs_srcdir='$(abs_srcdir)'; \
626		    abs_builddir='$(abs_builddir)'; \
627		    abs_top_builddir='$(abs_top_builddir)'; \
628		    export abs_srcdir; export abs_builddir; \
629		    export abs_top_builddir; \
630		    export LC_ALL; export LANG; export VALGRIND_CMD; \
631		    unset DEBUGINFOD_URLS; \
632		    NM='$(NM)'; export NM; \
633		    CC='$(CC)'; export CC;
634LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
635	       $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
636
637installcheck-local:
638	$(MAKE) $(AM_MAKEFLAGS) \
639		TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
640		LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
641
642if BUILD_STATIC
643libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread
644libelf = ../libelf/libelf.a -lz
645libasm = ../libasm/libasm.a
646else
647libdw = ../libdw/libdw.so
648libelf = ../libelf/libelf.so
649libasm = ../libasm/libasm.so
650endif
651libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
652libeu = ../lib/libeu.a
653
654arextract_LDADD = $(libelf)
655arsymtest_LDADD = $(libelf)
656newfile_LDADD = $(libelf)
657saridx_LDADD = $(libeu) $(libelf)
658scnnames_LDADD = $(libelf)
659sectiondump_LDADD = $(libeu) $(libelf)
660showptable_LDADD = $(libelf)
661hash_LDADD = $(libelf)
662test_nlist_CFLAGS =-g -O0 $(EXTRA_NLIST_CFLAGS)
663test_nlist_LDADD = $(libelf)
664msg_tst_LDADD = $(libelf)
665newscn_LDADD = $(libelf)
666early_offscn_LDADD = $(libeu) $(libelf)
667ecp_LDADD = $(libeu) $(libelf)
668update1_LDADD = $(libelf)
669update2_LDADD = $(libelf)
670update3_LDADD = $(libdw) $(libelf)
671update4_LDADD = $(libdw) $(libelf)
672show_die_info_LDADD = $(libdw) $(libelf)
673get_pubnames_LDADD = $(libdw) $(libelf)
674show_abbrev_LDADD = $(libdw) $(libelf)
675get_lines_LDADD = $(libdw) $(libelf)
676next_lines_LDADD = $(libdw) $(libelf)
677get_files_LDADD = $(libdw) $(libelf)
678next_files_LDADD = $(libdw) $(libelf)
679get_aranges_LDADD = $(libdw) $(libelf)
680allfcts_LDADD = $(libdw) $(libelf)
681line2addr_LDADD = $(libeu) $(libdw) $(argp_LDADD)
682addrscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD)
683funcscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD)
684funcretval_LDADD = $(libeu) $(libdw) $(argp_LDADD)
685allregs_LDADD = $(libeu) $(libdw) $(argp_LDADD)
686find_prologues_LDADD = $(libeu) $(libdw) $(argp_LDADD)
687#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
688asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
689asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
690asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
691asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
692asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
693asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
694asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
695asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
696asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
697dwflmodtest_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD)
698rdwrmmap_LDADD = $(libeu) $(libelf)
699dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf)
700arls_LDADD = $(libelf)
701dwfl_bug_fd_leak_LDADD = $(libeu) $(libdw) $(libebl) $(libelf)
702dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf)
703dwfl_bug_getmodules_LDADD = $(libeu) $(libdw) $(libebl) $(libelf)
704dwfl_addr_sect_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD)
705dwarf_getmacros_LDADD = $(libdw)
706dwarf_ranges_LDADD = $(libdw)
707dwarf_getstring_LDADD = $(libdw)
708addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
709dwarfcfi_LDADD = $(libeu) $(libdw) $(libelf)
710test_flag_nobits_LDADD = $(libelf)
711rerequest_tag_LDADD = $(libdw)
712alldts_LDADD = $(libdw) $(libelf)
713typeiter_LDADD = $(libdw) $(libelf)
714typeiter2_LDADD = $(libdw) $(libelf)
715low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD)
716test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
717dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD)
718dwfllines_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
719dwfl_report_elf_align_LDADD = $(libeu) $(libdw)
720dwfl_report_offline_memory_LDADD = $(libeu) $(libdw)
721dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf)
722varlocs_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
723backtrace_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
724# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
725backtrace_child_CFLAGS = $(fpie_CFLAGS)
726backtrace_child_LDFLAGS = -pie -pthread
727backtrace_child_biarch_SOURCES = backtrace-child.c
728backtrace_data_LDADD = $(libeu) $(libdw) $(libelf)
729backtrace_dwarf_CFLAGS = -Wno-unused-parameter
730backtrace_dwarf_LDADD = $(libeu) $(libdw) $(libelf)
731debuglink_LDADD = $(libeu) $(libdw) $(libelf)
732debugaltlink_LDADD = $(libeu) $(libdw) $(libelf)
733buildid_LDADD = $(libeu) $(libdw) $(libelf)
734deleted_LDADD = ./deleted-lib.so
735deleted_lib_so_LDFLAGS = -shared
736deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables
737aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD)
738peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD)
739vdsosyms_LDADD = $(libeu) $(libdw) $(libelf)
740getsrc_die_LDADD = $(libeu) $(libdw) $(libelf)
741strptr_LDADD = $(libelf)
742newdata_LDADD = $(libelf)
743elfstrtab_LDADD = $(libelf)
744dwfl_proc_attach_LDADD = $(libeu) $(libdw)
745dwfl_proc_attach_LDFLAGS = -pthread -rdynamic $(AM_LDFLAGS)
746elfshphehdr_LDADD =$(libelf)
747elfstrmerge_LDADD = $(libeu) $(libdw) $(libelf)
748dwelfgnucompressed_LDADD = $(libelf) $(libdw)
749elfgetchdr_LDADD = $(libelf) $(libdw)
750elfgetzdata_LDADD = $(libelf)
751elfputzdata_LDADD = $(libelf)
752zstrptr_LDADD = $(libelf)
753emptyfile_LDADD = $(libelf)
754vendorelf_LDADD = $(libelf)
755fillfile_LDADD = $(libelf)
756dwarf_default_lower_bound_LDADD = $(libdw)
757dwarf_die_addr_die_LDADD = $(libdw)
758get_units_invalid_LDADD = $(libdw)
759get_units_split_LDADD = $(libdw)
760attr_integrate_skel_LDADD = $(libdw)
761all_dwarf_ranges_LDADD = $(libdw)
762unit_info_LDADD = $(libdw)
763next_cfi_LDADD = $(libeu) $(libelf) $(libdw)
764elfcopy_LDADD = $(libelf)
765addsections_LDADD = $(libelf)
766debuginfod_build_id_find_LDADD = $(libelf) $(libdw)
767xlate_notes_LDADD = $(libelf)
768elfrdwrnop_LDADD = $(libelf)
769dwelf_elf_e_machine_string_LDADD = $(libelf) $(libdw)
770getphdrnum_LDADD = $(libelf) $(libdw)
771leb128_LDADD = $(libelf) $(libdw)
772read_unaligned_LDADD = $(libelf) $(libdw)
773nvidia_extended_linemap_libdw_LDADD = $(libelf) $(libdw)
774
775# We want to test the libelf header against the system elf.h header.
776# Don't include any -I CPPFLAGS. Except when we install our own elf.h.
777if !INSTALL_ELFH
778system_elf_libelf_test_CPPFLAGS =
779else
780system_elf_libelf_test_CPPFLAGS = -I$(top_srcdir)/libelf
781endif
782system_elf_libelf_test_LDADD = $(libelf)
783
784# A lock file used to make sure only one test dumps core at a time
785CLEANFILES += core-dump-backtrace.lock
786
787if GCOV
788check: check-am coverage
789.PHONY: coverage
790coverage:
791	-$(srcdir)/coverage.sh
792endif
793