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