From nobody Thu Aug 11 16:44:39 2022 X-Original-To: dev-commits-src-all@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 4M3Xhp2Lywz4Ywd4; Thu, 11 Aug 2022 16:44:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M3Xhp1pTpz40vD; Thu, 11 Aug 2022 16:44:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660236282; 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: in-reply-to:in-reply-to:references:references; bh=wkYLH5VQdM2ava+O01m3UFGcQui2V+p7Zb6MjyAG3zY=; b=n5P3F4tT5W+eoov32KQ3oJUBSbUMFryXGaOUFwO/fmjMHDbOu5uUbxtqJVjwbrvljkG/y7 NIEr3f8nkE7JxcG+m/slF/UTXwpwtSyaJgxADQWulJ8HxC6EaazUhQ0yRHa+iFG/zeLMB+ 4CAWWlE1PvDfjUuJL1H4pOYkpxPQNWYC7GYcTXdMjjOJh5QJG9ph7x06pXeiEdHiiTmeFE u8Ehy3FlobUDdwdNBcuOky9WBBG0/uLgtZthFMou6Xo/n2Tl/M6qQm4wpUxREzB3fEQ3pt C56a1oEZ/UDRjiRjnn0GkO6twMe3qfC5XeGqvqdUpgwOVr0ij9Fh4C4cbFIBbg== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M3Xhn3gtKzvrn; Thu, 11 Aug 2022 16:44:41 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: Date: Thu, 11 Aug 2022 09:44:39 -0700 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: git: e2295b911723 - main - stand: i386/amd64: Always use elf format for /boot/loader and pxeldr Content-Language: en-US To: Warner Losh , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202208110331.27B3VZj9007311@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202208110331.27B3VZj9007311@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660236282; 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: in-reply-to:in-reply-to:references:references; bh=wkYLH5VQdM2ava+O01m3UFGcQui2V+p7Zb6MjyAG3zY=; b=bjrDt52Bu0WLEiq/4u99LrIh4zm7HoiFl5XvQypAyv2Sfzd0ByE06/VYAl1Ct7UuwuJym7 FEPprvoYalm1hTzuYIsb3d5VpQ+Mwtcr7aMce1A3T23XF5gqcaS+BrzZASaInlHL6QqhHp zhv+EP0/qdCSqxyr2T6bTQeuoZd2wxsYPj+i/O+7eivmgVtZXBi0aYX7eEEXzAlTGy89by ObsQqcATVy3ghGWDMNas1gFzboZTMXI35CaDwcxDBNYWl/iYppJPo7hG1Jjv4eLJAGDh0Q nlFthZEdloJSl5LvIg7qX/T4LPDZIwYnOGtKBo9arkMFKfjJexcs1H6HE4l2mQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660236282; a=rsa-sha256; cv=none; b=O9HQeN2Jqm+uazrgnphanWcOnV2KNaYxU7Hha30i4LyShlJtYi1sRpJy3CJbq1mICKU2dh s/l9xJ4qX4sgzHk49KAQSZ/YOXNvvKYbRjLz03tEMmbT/luUnBBCFomCCFuwC2ajMyl9+p 9jt4LNHUvlmU+yjR/4SR2e5HfhgEU/PQtjUObi+Zx+E0OE6ZqiuCHjVTee6FLj8R4W36cQ hLhs5GbDrJ7pmj4POa5F6oUlhyrKhH93QTZb070PlO/5P3Hq8hIhY8mihrieSAenvqX/Xz ZmrAe51j5JSyUkFGrmORoYNH1OfzERemvgNyXtC4LVaK6N8UUNAr9RXZ+yAZ1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 8/10/22 8:31 PM, Warner Losh wrote: > The branch main has been updated by imp: > > URL: https://cgit.FreeBSD.org/src/commit/?id=e2295b9117233d8248fe919c6b28ef1d44a8950d > > commit e2295b9117233d8248fe919c6b28ef1d44a8950d > Author: Warner Losh > AuthorDate: 2022-08-11 03:18:32 +0000 > Commit: Warner Losh > CommitDate: 2022-08-11 03:28:22 +0000 > > stand: i386/amd64: Always use elf format for /boot/loader and pxeldr > > The first level boot blocks have understood how to load ELF code since > 1999. Switch /boot/loader and /boot/pxeldr over to being ELF format so > that in-tree tools can examine them more closely. In addition, one > could, in theory, now have a 'lo-mem' and a 'hi-mem' segment (though a > lot of work would need to be done with bounce buffers, btx, code segment > marking, etc for an arrangement like that to work). > > As far as I can tell, this is the last a.out binary in the tree. There > are several raw binaries left, but everything else is ELF. Unfortunately not all of our boot blocks are ready for this. pxeboot consists of pxldr.S glued in front of a /boot/loader binary and pxeldr.S assumes an a.out header which it parses to know how large /boot/loader is how to relocate it and it's nested BTX kernel. Similarly, cdboot.S used for booting of ISO images reads /boot/loader directly off of an ISO and also assumes an a.out header for /boot/loader. -- John Baldwin