From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 14:27:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF0F1106564A for ; Mon, 15 Dec 2008 14:27:15 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 591348FC1B for ; Mon, 15 Dec 2008 14:27:14 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=mNEr84tGe/QVW7WJZXAABosdP6+MiGbYUrIpNd57SnEd7OW+qh4Jk+3jpIECTIOUITMwKieDhgn3cBABAdoW+rM6SJ//f0OG/iZAwL4BOfunegs44Am3gFK2psYSoZ/HiGxHR/1jALqqdDMBFeUxDuZ8Y40PxzpFzFBb1NzpFic=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1LCEPd-0004cw-GK; Mon, 15 Dec 2008 17:27:09 +0300 Date: Mon, 15 Dec 2008 17:27:08 +0300 From: Eygene Ryabinkin To: Andriy Gapon Message-ID: References: <4909DC03.1080901@icyb.net.ua> <20081030184625.GA99398@server.vk2pj.dyndns.org> <490B05BA.9090306@icyb.net.ua> <4942483D.8000003@icyb.net.ua> <494648AF.6010009@icyb.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wwtQuX191/I956S7" Content-Disposition: inline In-Reply-To: <494648AF.6010009@icyb.net.ua> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: memtest86+ on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 14:27:15 -0000 --wwtQuX191/I956S7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andriy, good day. Mon, Dec 15, 2008 at 02:08:15PM +0200, Andriy Gapon wrote: > on 12/12/2008 13:17 Andriy Gapon said the following: > > Just in case anybody still remembers this issue. > > It seams that the main culprit here was the following line in the linker > > script: > >=20 > > OUTPUT_FORMAT("elf32-i386"); > >=20 > > I was tipped just today that it should have read: > > OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", > > "elf32-i386-freebsd"); >=20 > In fact it was Stephan Eisvogel who provided me with this hint. Yes, it is a somewhat known culprit. A number of packages that are messing with assembly code have troubles due to this directive. The better way to overcome this issue is not to patch linker scripts, but to override object format via '--oformat elf32-i386-freebsd' command-line switch to ld(1). With this your proposed patch could be made even smaller, providing that you can override linker command-line switches, and it will be more robust in respect to the patching troubles when linker scripts will be changed. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --wwtQuX191/I956S7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklGaTwACgkQthUKNsbL7YgFygCfdFfShV5bubDTqFZDbEGeYduz PN4AnRY6Kx+3Kqof4L4QmfjAjulo0ev+ =b6Zq -----END PGP SIGNATURE----- --wwtQuX191/I956S7--