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