From owner-freebsd-current Thu Aug 9 11:13: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.wrs.com (unknown-1-11.windriver.com [147.11.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 1377137B401; Thu, 9 Aug 2001 11:13:01 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@[147.11.46.201]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id LAA29352; Thu, 9 Aug 2001 11:12:23 -0700 (PDT) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010809163526.P49083-100000@beagle.fokus.gmd.de> Date: Thu, 09 Aug 2001 11:12:25 -0700 (PDT) From: John Baldwin To: Harti Brandt Subject: RE: Problem with pxeboot and binutils-2.11 Cc: current@FreeBSD.org, net@FreeBSD.org, obrien@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-Aug-01 Harti Brandt wrote: > > Hello, > > some time ago we reported a problem with pxeboot under -current (see below). > We have tried to track down the problem and it seems to be a bug or a > feature in gas or libbfd. It turns out, that the output from pxeldr before > the binutils-2.11 import on 5/29/2001 was 500 bytes long. After the import > the output has grown to 512 byte. The excess bytes contain a jump to the > address 512 and a number of NOPs. The result of this is, that the loader > image which is located imediately after pxeldr is shifted by 12 bytes > and the address calculations in pxeldr.s are wrong now. > > Unfortunately we're not able to find out what new bug^h^h^hfeature of > gas or libbfd causes this behaviour. A simple workaround is to strip the > excess bytes from pxeldr just before building pxeboot, but that is REALLY > ugly: It is evil. Looks like it is aligning the end of the text even though I haven't asked. A grotty hack would be to use a org at the end to force pxeldr to be 512 bytes. Try this: --- pxeldr.s 2001/02/06 11:20:05 1.6 +++ pxeldr.s 2001/08/09 17:41:38 @@ -277,5 +277,6 @@ bootinfo_msg: .asciz "Building the boot loader arguments\r\n" relocate_msg: .asciz "Relocating the loader and the BTX\r\n" jump_message: .asciz "Starting the BTX loader\r\n" - + + .org 0x200,0x0 end: -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message