Jv15hhWH3EJs/7k 1rvmZFdhyKXHwW7+cmhOTkoxIRFYOS6IClEtppQ4Fp+ACSIShsh3NJZQ+DIt+psrd9D2Mo mOMp0bkc1u7ziNNQaHiPLVFp77H2z3482nc+0y3mjGtD/GRR0RiK906TWxznbL88daOHKz domdFDpGngz30PUxIYAHnPeSoeo/OQeAblK+X27R++nyRsfqD/itALr3r2fdKMW+oGGFBW aLh0o/yHMj2b29rl1xGIxV/lt/jUhtlOe4YrxP6nOie0fGEZIN8ADNyaRxXLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765822715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ftlCmol/aAk8bMx2xHIZ1zf6ELE/SDH6I1qLHYJsJQc=; b=VAcQrFZC9iXHpqdJUISyD/0Zv1gMrhcKVD0XU/hhwIMiP7fpGg57nKfPFB/Jxc16jeG25y 0vbAQDgEZSpHx8bbXL8TUfscRn58NZcC6rS8g2qFC55OkOyjMypnlp/vplHqNvuriS72rr V2Ja7IvAXVw4Z9aqcXdhnc25DpIu4n/61id6ZU9ZoZmXKx+uRohGDVIAejZkA2fV0cm815 ZDKKXSX26kdBFBvvyHjBE2VT+dOEJnRLsShh1ATK+Vn6GDwGwm8kDZyqmMeMsTLFdreKRx 39UprrlHQZ3k2mquKMUDzlQLV67TTEzAnpzNOVjnHBvyt9K6IPRUNy8YSQ5R/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765822715; a=rsa-sha256; cv=none; b=RIv6yZ97D6wyPVNyIMppHsaSo6xZOtYvgK8Tt4NfO4qm6f04LohYByUQs8kQ49mDipWZaR oiHJjbl+V9yNlc1iBAWuqgLRMh9Ef/JFI+bi7yoi1o0M5VB83f4xaYEUxBNbZTkeVDSZM3 hArUzLx5GIP3hhC3f3+0ilg9cIsHf+joVAKwCrrJx9TEKoad/CWSppXwDLwwNcLSjWNI67 88jtc4qncUomdDpdjtwEU8D84nUUEHa5LG+4LC5ph/ClX/CRoIC+Z8jHpTrTnoymX2gT8U psiPnzNxVzF1DIEg+AahSyDQHw7aJJfBo6K3RaR4751H4CY7iHsiL0no6cBigQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dVSx66yhyzWn6 for ; Mon, 15 Dec 2025 18:18:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25b6d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 15 Dec 2025 18:18:34 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jessica Clarke Subject: git: 9c9f4654e4db - stable/13 - kldxref: Don't warn and skip file if no relocations are found List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9c9f4654e4dbfda9921055f32e2e225f1bf1743e Auto-Submitted: auto-generated Date: Mon, 15 Dec 2025 18:18:34 +0000 Message-Id: <694050fa.25b6d.35e721d@gitrepo.freebsd.org> The branch stable/13 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=9c9f4654e4dbfda9921055f32e2e225f1bf1743e commit 9c9f4654e4dbfda9921055f32e2e225f1bf1743e Author: Jessica Clarke AuthorDate: 2024-09-10 17:56:22 +0000 Commit: Jessica Clarke CommitDate: 2025-12-15 17:56:35 +0000 kldxref: Don't warn and skip file if no relocations are found This case is hit for the kernel itself on riscv64, and did not used to be checked. Since the code here can already handle missing Elf_Rel and/or Elf_Rela just delete the check. Reviewed by: jhb, imp Fixes: 0299afdff145 ("kldxref: Make use of libelf to be a portable cross tool") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D46517 (cherry picked from commit 05996f453de2f2c7a03437a492d9d53831fccb2e) --- usr.sbin/kldxref/ef.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c index 77ddada946f2..975626e46046 100644 --- a/usr.sbin/kldxref/ef.c +++ b/usr.sbin/kldxref/ef.c @@ -364,11 +364,6 @@ ef_parse_dynamic(elf_file_t ef, const GElf_Phdr *phdyn) error = EFTYPE; goto out; } - if (rel_off == 0 && rela_off == 0) { - warnx("%s: no ELF relocation table found\n", ef->ef_name); - error = EFTYPE; - goto out; - } nsym = 0; for (i = 0; i < nshdr; i++) {