Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ltklg-0003sf-Bm for mharc-grub-devel@gnu.org; Tue, 14 Apr 2009 11:41:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ltkle-0003ru-Ps for grub-devel@gnu.org; Tue, 14 Apr 2009 11:41:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ltkle-0003ri-B6 for grub-devel@gnu.org; Tue, 14 Apr 2009 11:41:46 -0400 Received: from [199.232.76.173] (port=47116 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ltkle-0003rf-7w for grub-devel@gnu.org; Tue, 14 Apr 2009 11:41:46 -0400 Received: from mail.nexedi.com ([91.121.25.85]:45629 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ltkld-0002O8-OL for grub-devel@gnu.org; Tue, 14 Apr 2009 11:41:45 -0400 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id AF8BD3D9FE for ; Tue, 14 Apr 2009 17:41:43 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 15 Apr 2009 00:41:52 +0900 User-Agent: KMail/1.9.10 References: <200904111924.53978.okuji@enbug.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904150041.52551.okuji@enbug.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] bug fix for grub-pe2elf X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 15:41:47 -0000 On Saturday 11 April 2009 21:07:51 Bean wrote: > On Sat, Apr 11, 2009 at 6:24 PM, Yoshinori K. Okuji wrote: > > On Saturday 11 April 2009 18:29:00 Bean wrote: > >> Hi, > >> > >> When symbol name is 8 or less, pe store it as short name, which is not > >> necessary null-terminated. > > > > Oh, I didn't know that. Where is it documented? > > Hi, > > Recently, I found some wired symbol not found error in modules > generated by mingw. After examining the binary image, it seems that PE > would use short name even for symbol whose length is 8, therefore no > null character at the end. grub-pe2elf assume the name is > null-terminated, which could result in extra characters in the > symbols. OK, so you've learned it from experience. :) As I don't want to agree on Microsoft's annoying conditions, I don't read the official spec, but Wikipedia admits that your interpretation is right. Regards, Okuji