From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O1lV9-00053r-Bk for mharc-grub-devel@gnu.org; Tue, 13 Apr 2010 15:10:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1lV7-00052x-3J for grub-devel@gnu.org; Tue, 13 Apr 2010 15:10:21 -0400 Received: from [140.186.70.92] (port=56743 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1lV4-00052l-V5 for grub-devel@gnu.org; Tue, 13 Apr 2010 15:10:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1lV3-0004uX-AP for grub-devel@gnu.org; Tue, 13 Apr 2010 15:10:18 -0400 Received: from mailout05.t-online.de ([194.25.134.82]:55083) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1lV3-0004uF-5Y for grub-devel@gnu.org; Tue, 13 Apr 2010 15:10:17 -0400 Received: from fwd02.aul.t-online.de (fwd02.aul.t-online.de ) by mailout05.t-online.de with smtp id 1O1lV0-0007UK-3X; Tue, 13 Apr 2010 21:10:14 +0200 Received: from [192.168.2.100] (bRDgdaZfZhz9fF+mo4f9lVtIJJFuWmfRe3yfN-BFx4wn7YRwWCX+O3HGjugceIEwEk@[217.235.169.166]) by fwd02.aul.t-online.de with esmtp id 1O1lUm-1hjr040; Tue, 13 Apr 2010 21:10:00 +0200 Message-ID: <4BC4C189.6020409@t-online.de> Date: Tue, 13 Apr 2010 21:10:01 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3 MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: bRDgdaZfZhz9fF+mo4f9lVtIJJFuWmfRe3yfN-BFx4wn7YRwWCX+O3HGjugceIEwEk X-TOI-MSGID: 30139d39-803a-4c3c-88c3-a72e68626797 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: NEED_REGISTER_FRAME_INFO can be replaced by -static-libgcc X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 19:10:21 -0000 Hi, a note regarding this fix: 2010-04-11 Vladimir Serbinenko <...> Fix cygwin compilation. * configure.ac: Define NEED_REGISTER_FRAME_INFO. * include/grub/misc.h (__register_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: New export. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise. * kern/misc.c (__register_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise. --- configure.ac 2010-04-11 14:14:51 +0000 +++ configure.ac 2010-04-12 14:58:44 +0000 @@ -376,7 +376,11 @@ # For platforms where ELF is not the default link format. AC_MSG_CHECKING([for command to convert module to ELF format]) case "${host_os}" in - cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;; + cygwin) TARGET_OBJ2ELF='grub-pe2elf'; +# FIXME: put proper test here + AC_DEFINE([NEED_REGISTER_FRAME_INFO], 1, + [Define to 1 if GCC generates calls to __register_frame_info()]) + ;; *) ;; The *_frame_info symbols are set undefined to force linkage of the libgcc_s shared library or dll. This can be prevented by TARGET_LDFLAGS=-static-libgcc. To build from grub-1.98 tarball on Cygwin, run configure with this argument. May also be necessary on other build platforms when -shared-libgcc is the default. It may be possible simply set -static-libgcc unconditionally. -- Regards, Christian Franke