Message ID | 20241010102559.9162-1-mcpratt@pm.me |
---|---|
Headers |
Return-Path: <elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 577F1385772E for <patchwork@sourceware.org>; Thu, 10 Oct 2024 10:27:08 +0000 (GMT) X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by sourceware.org (Postfix) with ESMTPS id 0B96A3857358 for <elfutils-devel@sourceware.org>; Thu, 10 Oct 2024 10:26:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0B96A3857358 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pm.me ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0B96A3857358 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.70.40.134 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728556016; cv=none; b=PjIjUsJgXyGZbsZlL3LTaMXufG+Yf4pcjUdsUotwtoEL2d+vVjzEU4+gEULscaehrqLPxQi+YTq5aDh5wnnZRUTQ1lNwf1jEee6qPKnW80lPqQWczAi1WkfUEKo5g/dDoCUPnJYJXJiMzXCFTqqN7t/nuw+0KCtjqLLEcrkUl/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728556016; c=relaxed/simple; bh=TeH+mYX2vJsmXWaXpD5N0Z7TsBLZW+iwmeYTqckk8LI=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=os3cNVD2eldxEznROecoIuZsdRVtYBGRL5owYn+4j6adLfouWaVu8+3NYJAaYRLVJxjPz3V4qrcBAqpBQjg6ro/a1xYVTdFi0mUSTMPScRX/2tn+x8utvq5SevMnZ4Ffei2FtewMCz85SztfnXrnjTIWWSJRr+ZYHXM8rPk4oc0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1728556012; x=1728815212; bh=jliZnOTQoUayoQrvajYrCJc07gJFbwn0p6Lg84eCY8k=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=JhJN8fOt0rYCwzxFht0A7jAVED6EwF9GV+IT+aTH9q+cRDsUy5koD4hRbiR7GDMN0 MO308fVFrG0KagZpEQ9yJ+dnnvoFG9f183b5cnkISLAJI9Hr9RErrDdkiQmZXxt6N6 AokoXUqkjB1VdBOldNOeHim6431ClHEaBGAhMH+EYi0X6C+1WLBdQPcY9kvatNjyPK 9hMAcCASRILmcpR7X9DthMUJDPVZ6bJehqEJDN0haYz5cbNg+SgS9fZs2Iac6NAb7c 9iwtriwfnAM3vS6RUEHItEo/gjrAjFvWr/N/pZNtj7JpbdkVTFViuaJzPOCKSy3mVU mJJhLpS/VllvQ== Date: Thu, 10 Oct 2024 10:26:47 +0000 To: elfutils-devel@sourceware.org From: Michael Pratt <mcpratt@pm.me> Cc: Michael Pratt <mcpratt@pm.me> Subject: [PATCH 0/6] Various portability fixes and organization Message-ID: <20241010102559.9162-1-mcpratt@pm.me> Feedback-ID: 27397442:user:proton X-Pm-Message-ID: 037fb4a48452ccef4831827bc6baa8f5d088b887 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Post: <mailto:elfutils-devel@sourceware.org> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> Errors-To: elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Various portability fixes and organization
|
|
Message
Michael Pratt
Oct. 10, 2024, 10:26 a.m. UTC
Hi, I saw that elfutils is having a release soon, so I thought now would be a good time to send some patches that are used by the Openwrt project to help elfutils build on more systems, for example, by integrating with gnulib/libtool, and coinciding with custom patches applied to other build tools. The first 4 patches are very simple so I'm hoping they can be merged ASAP. The last 2 patches are less critical, especially the last one which is just an organizational step. If the last 2 patches are not acceptable, they can be dropped or revisited after the release. Thanks, MCP Michael Pratt (6): lib: Add missing config.h include to next_prime.c libcpu: Include config.h before standard headers in lexer source libdw: Let clean targets be unconditional src: Prevent invalid include of binary into compilation Remove usage of "unlocked" variant of stdio print functions Use file stream or format variants of stdio print functions lib/next_prime.c | 4 + libasm/asm_align.c | 4 +- libcpu/i386_disasm.c | 2 +- libcpu/i386_lex.l | 10 +- libcpu/i386_parse.y | 4 +- libdw/Makefile.am | 2 +- libebl/eblobjnote.c | 4 +- src/Makefile.am | 1 + src/addr2line.c | 8 +- src/ar.c | 2 +- src/elfclassify.c | 2 +- src/elflint.c | 2 +- src/nm.c | 22 ++-- src/objdump.c | 28 ++--- src/readelf.c | 198 +++++++++++++++++----------------- src/size.c | 8 +- src/strings.c | 20 ++-- src/unstrip.c | 2 +- tests/addrcfi.c | 2 +- tests/addrscopes.c | 2 +- tests/all-dwarf-ranges.c | 4 +- tests/arextract.c | 4 +- tests/asm-tst1.c | 6 +- tests/asm-tst2.c | 6 +- tests/asm-tst3.c | 8 +- tests/asm-tst4.c | 2 +- tests/asm-tst5.c | 2 +- tests/asm-tst6.c | 2 +- tests/asm-tst7.c | 6 +- tests/asm-tst8.c | 6 +- tests/asm-tst9.c | 6 +- tests/buildid.c | 4 +- tests/debugaltlink.c | 4 +- tests/dwarf-getmacros.c | 6 +- tests/dwarf-getstring.c | 2 +- tests/dwarf-ranges.c | 2 +- tests/dwarfcfi.c | 2 +- tests/dwflmodtest.c | 6 +- tests/funcretval.c | 6 +- tests/funcscopes.c | 2 +- tests/get-aranges.c | 6 +- tests/get-files-define-file.c | 2 +- tests/get-files.c | 2 +- tests/get-pubnames.c | 4 +- tests/line2addr.c | 4 +- tests/next-files.c | 2 +- tests/saridx.c | 2 +- tests/scnnames.c | 2 +- tests/sectiondump.c | 4 +- tests/show-die-info.c | 62 +++++------ tests/showptable.c | 10 +- tests/test-nlist.c | 2 +- 52 files changed, 262 insertions(+), 253 deletions(-)
Comments
Hi Aaron, The first 3 patches of the series are pretty simple and helpful. I would like to see them in the next release, do they look ok? Without the first 2, we actually experience build errors due to config.h not being included or being included too late. The 3rd one prevents an error with our patched automake, it's unknown whether upstream automake would accept it due to the increased strictness in how the variable is defined, but it's a very easy adjustment anyway. -- Thanks for your consideration, MCP