Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lsc08-0001UC-1V for mharc-grub-devel@gnu.org; Sat, 11 Apr 2009 08:08:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lsc06-0001T3-P9 for grub-devel@gnu.org; Sat, 11 Apr 2009 08:07:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lsc02-0001Na-1W for grub-devel@gnu.org; Sat, 11 Apr 2009 08:07:58 -0400 Received: from [199.232.76.173] (port=43271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lsc01-0001NV-VR for grub-devel@gnu.org; Sat, 11 Apr 2009 08:07:53 -0400 Received: from ti-out-0910.google.com ([209.85.142.184]:11291) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lsc01-0008Jj-E9 for grub-devel@gnu.org; Sat, 11 Apr 2009 08:07:53 -0400 Received: by ti-out-0910.google.com with SMTP id y8so1030297tia.10 for ; Sat, 11 Apr 2009 05:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Nv61lq6jby4/2fZl9/tpUVU9NQ8LSWX3lg3Wb2lnH9k=; b=dbyWRr2KhFCyTBISaNtkzgDbXAg2VZv15BvLbp8wxs5TDk90QEkD/mq+anByCgt9hO Hu/6rA0N4PEbkPNM+hBh1pODJ80jRbAL2XHl963x5Gpitg/1wt+s1RQYHH7S1TRx1GJz ONWqaPpYJ7JqvLQaYDv39dC9ZnwF2z2zkLkUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uuuLdYd7FJCrv7qAB2DkIVLgV4aUUupFFUVVfE4QdJ9u6/V7CgCytfcdzaM+i9i1l4 5qSRFO/CbaofoymiTMgLSNlb4vGJpsd7U6S8egvafWryfRCy0hCf9SbW/5INtiwazh+j yyNKLaNvdyF4bHjG9DapsmOLNPARrUTGA5wdk= MIME-Version: 1.0 Received: by 10.110.42.17 with SMTP id p17mr5086121tip.16.1239451671708; Sat, 11 Apr 2009 05:07:51 -0700 (PDT) In-Reply-To: <200904111924.53978.okuji@enbug.org> References: <200904111924.53978.okuji@enbug.org> Date: Sat, 11 Apr 2009 20:07:51 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Sat, 11 Apr 2009 12:07:59 -0000 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. -- Bean