From nobody Mon Sep 02 18:06:13 2024 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WyGsT1XY2z5TpR0 for ; Mon, 02 Sep 2024 18:06:21 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mail.oetec.com", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WyGsS4XZ4z45lN for ; Mon, 2 Sep 2024 18:06:20 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=YISFA2E4; dmarc=pass (policy=quarantine) header.from=blastwave.org; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org Received: from [172.16.35.3] (pool-99-253-118-250.cpe.net.cable.rogers.com [99.253.118.250]) (authenticated bits=0) by mail.oetec.com (8.17.1/8.17.1) with ESMTPSA id 482I6DVI085550 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 2 Sep 2024 14:06:15 -0400 (EDT) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1725300375; bh=5liXZOZ4Q9yVE6EGpm5Ltx2jGE4OrvF/S75tloL+koQ=; h=Date:Subject:To:References:From:In-Reply-To; b=YISFA2E4xRJywX3yAVZ6/mj3s891ekoh2vi4uLFyl+BWMBzvwGqSa2t2HLb47jwTf qGni/Ni4JsfTgo4N+sqj9DP1gAUFrkV5OKx9C+QjKJSu8NXu4wuJ/L6CkPglrCkOWP iOvTN65Jbh9dlzyjTTnReJn9Y591AukN+eqaIfOc2aNnMafmH9JgBQyoqFVsgcCwHC ILpyB1Gw8BTq0ANa8t5NVjdhSYGWp4oNI+EQTmFAo6VQkstu3+thIsu4CA0A6In0DS oVwwB6ybwiXLFP3Q8B/mt+nKr67bqUtF2Q5PENCKT1qq1Wuo1C7xxwDl2+f5B3Njrl 8t2NIUyQdpOAg== Message-ID: Date: Mon, 2 Sep 2024 14:06:13 -0400 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: kldxref: /boot/kernel/kernel: no ELF relocation table found Content-Language: en-CA To: riscv@freebsd.org References: <8a58b38a-b7fb-494e-a730-e4c341aaa9ee@blastwave.org> <02D984C2-3505-4E61-BC24-21E9E5249F70@freebsd.org> From: Dennis Clarke Organization: GENUNIX In-Reply-To: <02D984C2-3505-4E61-BC24-21E9E5249F70@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 482I6DVI085550 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.67 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.983]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_ALLOW(-0.20)[+mx:c]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[riscv@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[blastwave.org:+]; MLMMJ_DEST(0.00)[riscv@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4WyGsS4XZ4z45lN On 9/2/24 13:57, Jessica Clarke wrote: > On 2 Sep 2024, at 11:54, Dennis Clarke wrote: >> >> >> All: >> >> Ye ol "make installkernel" starts nicely but ends a little odd : >> . . . . . >> kldxref /boot/kernel >> kldxref: /boot/kernel/kernel: no ELF relocation table found >> >> -------------------------------------------------------------- >>>>> Installing kernel GENERIC completed on Mon Sep 2 10:13:55 UTC 2024 >> -------------------------------------------------------------- >> >> >> >> >> So then ... "no ELF relocation table found"? >> >> Looking at https://cgit.freebsd.org/src/tree/usr.sbin/kldxref/ef.c#n220 >> and then downwards to line 367 : >> >> if (rel_off == 0 && rela_off == 0) { >> warnx("%s: no ELF relocation table found\n", ef->ef_name); >> error = EFTYPE; >> goto out; >> } >> . . . . . >> So therefore the situation : >> >> ( 1 ) well understood and just a normal red herring[1] >> >> ( 2 ) ignore it >> >> ( 3 ) huh? that's weird. never saw that before. >> >> Curious what is going on there. > > It’s a harmless warning from an overly-careful set of checks. The tool > was refactored and this case went from being ignored to warning. Cc’ing > jhb@ to remind him of this as I pointed it out a while ago. > > Jess Thank you once again ! So this is a serious case of " ( 2 ) ignore it " for now. I figured that the output from readelf -delV was darn similar to the previous kernel. So ... yeah ... I ignored it. Onwards and upwards and I may even get some docs written up. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken