From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id E85163858D1E for ; Tue, 13 Sep 2022 16:40:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E85163858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x536.google.com with SMTP id bh13so11842830pgb.4 for ; Tue, 13 Sep 2022 09:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=ELdktq9WKCT8xGYuMzKAJ4MT49rWJZKTsYx9PejJKgI=; b=PSTrOxvTkFWZYcHAMg99mOa4ABO1jKmwEuYwI33g0CUkB5lOmdzNBCsKO8VwBZI47A Sz9zhMJvPH1vbls+dzYZ20ZDQsBQFR8tMe7PQ6/Mdpn8h59kFzQwE9LUJUW7WjeV0iWC Rb0OC8XDt4ttcIZxMq+liXQ/moFcsJ/lSQ39/5WP0hnPqbo75taLu4rMDt6lkFlgVcyF JSkqbRpsTHl5cOv76cj2E10GDNb++d4yty1x0R3g6Mw2C7A3ihvDoM7dmTjFUvVsy/SB 1PJRSw5yeFZH0SlXl2PWIgwRXXI6iHAm1sCe3XWvuDyG0rXL0rcXoRRIK/6f9oZIGQCQ /+Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=ELdktq9WKCT8xGYuMzKAJ4MT49rWJZKTsYx9PejJKgI=; b=Bfg3PYoQ0kUAWF03xCYui3wlWcMtalp4IN9Zy82tEmpCZmCgOv3pkpUBQXgWLoqdQk uBXNCHqrouQ4GBgL/RXuKlLbddHq7pjsJ+w4Acfgte5ujp4y0DhDz5j73hXBfFkV6xhz NoFkewyPKJgrWIAxFTXk5cAFe0f1VSjjZ8j1lENN4TYuMC36xynXyoTuLj0J+RoQPh2p 4ecltlX4cbnhYSybaVPXtNYkUdT8D6FvmGkadoFqRR2t9w9E8oN77opgy49J93pbicFc xmqAFE8O1VsJsZbeWKeuOiQD7AAALAXxZaaP9HLK0jMmpeWkmlSOV01TZ7ldxctCBmJm UZlg== X-Gm-Message-State: ACgBeo3fsPGhZYRh2YPlKc0jBqVweLx3jikwBJ7gUqn/0KmY68RZetDV Xu5sJ9/i+rfU0pj/4TkSDmtnKIDi9HeULg== X-Google-Smtp-Source: AA6agR4D80EcTQkaC1yG4PiDveQxXnvipj4l9lNw1IeyxLZQOOAd7VobKeiSFKXPa68rOr02SWf1aQ== X-Received: by 2002:a63:3409:0:b0:438:c9c9:5582 with SMTP id b9-20020a633409000000b00438c9c95582mr12961752pga.69.1663087209449; Tue, 13 Sep 2022 09:40:09 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::8fc7]) by smtp.gmail.com with ESMTPSA id q6-20020a170902dac600b00174a4bcefc7sm8681406plx.217.2022.09.13.09.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 09:40:09 -0700 (PDT) From: Khem Raj To: elfutils-devel@sourceware.org Cc: Khem Raj Subject: [PATCH] tests: Add libeu to tests needing error() API Date: Tue, 13 Sep 2022 09:40:06 -0700 Message-Id: <20220913164006.2486925-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: A local error() impelmentation is used when libc does not provide it, therefore link in libeu.a which contains this function in tests needing error() API Signed-off-by: Khem Raj --- tests/Makefile.am | 60 +++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 87988fb9..c76317df 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -646,17 +646,17 @@ libeu = ../lib/libeu.a arextract_LDADD = $(libelf) arsymtest_LDADD = $(libelf) newfile_LDADD = $(libelf) -saridx_LDADD = $(libelf) +saridx_LDADD = $(libeu) $(libelf) scnnames_LDADD = $(libelf) -sectiondump_LDADD = $(libelf) +sectiondump_LDADD = $(libeu) $(libelf) showptable_LDADD = $(libelf) hash_LDADD = $(libelf) test_nlist_CFLAGS =-g -O0 $(EXTRA_NLIST_CFLAGS) test_nlist_LDADD = $(libelf) msg_tst_LDADD = $(libelf) newscn_LDADD = $(libelf) -early_offscn_LDADD = $(libelf) -ecp_LDADD = $(libelf) +early_offscn_LDADD = $(libeu) $(libelf) +ecp_LDADD = $(libeu) $(libelf) update1_LDADD = $(libelf) update2_LDADD = $(libelf) update3_LDADD = $(libdw) $(libelf) @@ -670,12 +670,12 @@ get_files_LDADD = $(libdw) $(libelf) next_files_LDADD = $(libdw) $(libelf) get_aranges_LDADD = $(libdw) $(libelf) allfcts_LDADD = $(libdw) $(libelf) -line2addr_LDADD = $(libdw) $(argp_LDADD) -addrscopes_LDADD = $(libdw) $(argp_LDADD) -funcscopes_LDADD = $(libdw) $(argp_LDADD) -funcretval_LDADD = $(libdw) $(argp_LDADD) -allregs_LDADD = $(libdw) $(argp_LDADD) -find_prologues_LDADD = $(libdw) $(argp_LDADD) +line2addr_LDADD = $(libeu) $(libdw) $(argp_LDADD) +addrscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcretval_LDADD = $(libeu) $(libdw) $(argp_LDADD) +allregs_LDADD = $(libeu) $(libdw) $(argp_LDADD) +find_prologues_LDADD = $(libeu) $(libdw) $(argp_LDADD) #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) @@ -686,19 +686,19 @@ asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -rdwrmmap_LDADD = $(libelf) +dwflmodtest_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD) +rdwrmmap_LDADD = $(libeu) $(libelf) dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) arls_LDADD = $(libelf) -dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) +dwfl_bug_fd_leak_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) +dwfl_bug_getmodules_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) +dwfl_addr_sect_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD) dwarf_getmacros_LDADD = $(libdw) dwarf_ranges_LDADD = $(libdw) dwarf_getstring_LDADD = $(libdw) addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -dwarfcfi_LDADD = $(libdw) $(libelf) +dwarfcfi_LDADD = $(libeu) $(libdw) $(libelf) test_flag_nobits_LDADD = $(libelf) rerequest_tag_LDADD = $(libdw) alldts_LDADD = $(libdw) $(libelf) @@ -707,35 +707,35 @@ typeiter2_LDADD = $(libdw) $(libelf) low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD) test_elf_cntl_gelf_getshdr_LDADD = $(libelf) dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfl_report_elf_align_LDADD = $(libdw) +dwfllines_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) +dwfl_report_elf_align_LDADD = $(libeu) $(libdw) dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf) -varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD) -backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD) +varlocs_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) +backtrace_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) # backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables: backtrace_child_CFLAGS = $(fpie_CFLAGS) backtrace_child_LDFLAGS = -pie -pthread backtrace_child_biarch_SOURCES = backtrace-child.c -backtrace_data_LDADD = $(libdw) $(libelf) +backtrace_data_LDADD = $(libeu) $(libdw) $(libelf) backtrace_dwarf_CFLAGS = -Wno-unused-parameter -backtrace_dwarf_LDADD = $(libdw) $(libelf) -debuglink_LDADD = $(libdw) $(libelf) -debugaltlink_LDADD = $(libdw) $(libelf) -buildid_LDADD = $(libdw) $(libelf) +backtrace_dwarf_LDADD = $(libeu) $(libdw) $(libelf) +debuglink_LDADD = $(libeu) $(libdw) $(libelf) +debugaltlink_LDADD = $(libeu) $(libdw) $(libelf) +buildid_LDADD = $(libeu) $(libdw) $(libelf) deleted_LDADD = ./deleted-lib.so deleted_lib_so_LDFLAGS = -shared deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD) peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD) -vdsosyms_LDADD = $(libdw) $(libelf) -getsrc_die_LDADD = $(libdw) $(libelf) +vdsosyms_LDADD = $(libeu) $(libdw) $(libelf) +getsrc_die_LDADD = $(libeu) $(libdw) $(libelf) strptr_LDADD = $(libelf) newdata_LDADD = $(libelf) elfstrtab_LDADD = $(libelf) -dwfl_proc_attach_LDADD = $(libdw) +dwfl_proc_attach_LDADD = $(libeu) $(libdw) dwfl_proc_attach_LDFLAGS = -pthread -rdynamic $(AM_LDFLAGS) elfshphehdr_LDADD =$(libelf) -elfstrmerge_LDADD = $(libdw) $(libelf) +elfstrmerge_LDADD = $(libeu) $(libdw) $(libelf) dwelfgnucompressed_LDADD = $(libelf) $(libdw) elfgetchdr_LDADD = $(libelf) $(libdw) elfgetzdata_LDADD = $(libelf) @@ -751,7 +751,7 @@ get_units_split_LDADD = $(libdw) attr_integrate_skel_LDADD = $(libdw) all_dwarf_ranges_LDADD = $(libdw) unit_info_LDADD = $(libdw) -next_cfi_LDADD = $(libelf) $(libdw) +next_cfi_LDADD = $(libeu) $(libelf) $(libdw) elfcopy_LDADD = $(libelf) addsections_LDADD = $(libelf) debuginfod_build_id_find_LDADD = $(libelf) $(libdw) -- 2.37.3