From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O3su4-0005eL-K7 for mharc-grub-devel@gnu.org; Mon, 19 Apr 2010 11:28:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3su1-0005bl-MX for grub-devel@gnu.org; Mon, 19 Apr 2010 11:28:50 -0400 Received: from [140.186.70.92] (port=45004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3stt-0004j2-8g for grub-devel@gnu.org; Mon, 19 Apr 2010 11:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3sf6-0003Zf-Qt for grub-devel@gnu.org; Mon, 19 Apr 2010 11:13:28 -0400 Received: from mailout06.t-online.de ([194.25.134.19]:38890) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3sf6-0003ZD-Le for grub-devel@gnu.org; Mon, 19 Apr 2010 11:13:24 -0400 Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de ) by mailout06.t-online.de with smtp id 1O3sf4-0000yr-8T; Mon, 19 Apr 2010 17:13:22 +0200 Received: from [192.168.2.100] (EAJjD4ZJrhO0d3E6mw3RDko57N7C5MwqX2hVviNiehdJlduQbjosjpHsO-f8fTdZDE@[217.235.176.136]) by fwd05.aul.t-online.de with esmtp id 1O3sf0-0Eeodc0; Mon, 19 Apr 2010 17:13:18 +0200 Message-ID: <4BCC7306.8030501@t-online.de> Date: Mon, 19 Apr 2010 17:13:10 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4 MIME-Version: 1.0 To: The development of GNU GRUB References: <4BC4C189.6020409@t-online.de> <4BC4C4FA.2050005@gmail.com> <4BC59A74.5080900@t-online.de> <4BCA1F7B.7080601@gmail.com> In-Reply-To: <4BCA1F7B.7080601@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ID: EAJjD4ZJrhO0d3E6mw3RDko57N7C5MwqX2hVviNiehdJlduQbjosjpHsO-f8fTdZDE X-TOI-MSGID: fdefb538-91ae-4c92-813b-5bbabc105491 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: 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: Mon, 19 Apr 2010 15:28:50 -0000 Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Christian Franke wrote: > >> >> According to 'gcc -dumpspecs' of Cygwin gcc 4.3.4-3, options '-u >> ___[de]register_frame_info' are always passed to the linker if >> -static-libgcc is not specified. This is Cygwin and MinGW specific: In >> the exe startup code these symbols are loaded only if present, so the >> DLL must be forced to load first. >> >> As a consequence, the symbols are also set undefined when the GRUB >> pre-*.o files are generated with 'ld -r'. >> >> The attached patch works for me with the bzr revision preceding the >> NEED_REGISTER_FRAME_INFO fix. >> >> > Doesn't it risk linking e.g. __bswapsi2 into every module which uses it > during partial link? It would increase module size on RISC > Partial linking with '-Wl,-r' does never pull any code from libraries. Specifying '-lgcc' has no effect in this case. Cannot test this on RISC, it is at least true on i686-linux, -freebsd and -cygwin. -- Regards, Christian Franke