From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 17 00:59:36 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9D5A106564A for ; Sun, 17 Jun 2012 00:59:36 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id 4338A8FC08 for ; Sun, 17 Jun 2012 00:59:36 +0000 (UTC) Received: (qmail 21245 invoked from network); 16 Jun 2012 20:52:49 -0400 Received: from c-71-234-176-233.hsd1.ct.comcast.net (HELO ?172.16.1.205?) (71.234.176.233) by mail.atlantawebhost.com with SMTP; 16 Jun 2012 20:52:49 -0400 Message-ID: <4FDD2A60.6080700@shadowsun.net> Date: Sat, 16 Jun 2012 20:52:48 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120612 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4FDBBACF.9040809@shadowsun.net> <4FDC59F5.9010801@yandex.ru> In-Reply-To: <4FDC59F5.9010801@yandex.ru> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: EFI development tools 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: Sun, 17 Jun 2012 00:59:36 -0000 On 06/16/12 06:03, Andrey V. Elsukov wrote: > Hi, Eric. > > Did you try the GNU EFI toolchain? It contains a good descriptions > on how to build EFI application and we probably can use some > suggestions even without importing it. > > http://sourceforge.net/projects/gnu-efi/ > I did. It looks like what's in the base system now was adapted from that. Now that I can build OVMF, I have substantially more ability to figure out what's going wrong with the programs I build using that method. I can also compare the files and assembly coming out of EDK builds to what comes out of the GNU toolchain. I'd be willing to bet it's some sort of subtle ABI issue. There are a couple of very subtle differences between the PE (microsoft) and ELF ABIs.