From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 14:39:00 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 68E271065672 for ; Mon, 15 Dec 2008 14:39:00 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 956D28FC19 for ; Mon, 15 Dec 2008 14:38:59 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA22246; Mon, 15 Dec 2008 16:37:19 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <49466B9E.1090900@icyb.net.ua> Date: Mon, 15 Dec 2008 16:37:18 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: rea-fbsd@codelabs.ru 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> In-Reply-To: Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: memtest86+ on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:39:00 -0000 on 15/12/2008 16:27 Eygene Ryabinkin said the following: > 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: >>> >>> OUTPUT_FORMAT("elf32-i386"); >>> >>> I was tipped just today that it should have read: >>> OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", >>> "elf32-i386-freebsd"); >> 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. Eygene, thanks a lot! this option is indeed sufficient. -- Andriy Gapon