From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O5mll-00082v-HA for mharc-grub-devel@gnu.org; Sat, 24 Apr 2010 17:20:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5mlj-00082g-4G for grub-devel@gnu.org; Sat, 24 Apr 2010 17:20:07 -0400 Received: from [140.186.70.92] (port=34883 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5mlg-00081r-U9 for grub-devel@gnu.org; Sat, 24 Apr 2010 17:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5mlf-0001Ai-2W for grub-devel@gnu.org; Sat, 24 Apr 2010 17:20:04 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:50926) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5mle-0001AS-Ti for grub-devel@gnu.org; Sat, 24 Apr 2010 17:20:03 -0400 Received: by bwz23 with SMTP id 23so10948122bwz.26 for ; Sat, 24 Apr 2010 14:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=g+OUYD6Cx4AXVTunwVvArBODXY0T/2tR8zJLr6pmzYw=; b=Y/iv91VCJc4//GlcoUimUYW8LkxvfpOF+75+HaFwnOWNF8k3fU208c71fLnySPjRkl 9fF4qMMFPfrsUWxpVq4NXlw8hrDMx0I6uM4xpusLFi4xlC6aMKYI7IY4Ms3T1uG3E6uj gVaeLpQwqPeCOaoOjPwbTlJDtcTAbp8gh7KYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=KqMouzXt+JIV0pKY3SOaqb4ykLe1vyeuuebT+0Si/velZ3Ed5qnU2ylqum1LL2/7UI jxlFY3yvKyKxQfNZd6quagF0t1T8ub4+/aa88dNR944WhtNOqPpq7Koj5LQ7czya+0yv YVC9wIoShsu3ei9ZQU1jiHlR1qpbqnfwmdnXk= Received: by 10.204.81.80 with SMTP id w16mr1182487bkk.84.1272144002089; Sat, 24 Apr 2010 14:20:02 -0700 (PDT) Received: from debian.bg45.phnet (39-210.2-85.cust.bluewin.ch [85.2.210.39]) by mx.google.com with ESMTPS id 15sm937372bwz.4.2010.04.24.14.19.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Apr 2010 14:20:01 -0700 (PDT) Message-ID: <4BD36073.7010502@gmail.com> Date: Sat, 24 Apr 2010 23:19:47 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) 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> In-Reply-To: <4BC59A74.5080900@t-online.de> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigCDDCEE5467A299990F25768D" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Sat, 24 Apr 2010 21:20:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCDDCEE5467A299990F25768D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Applied. Christian Franke wrote: > Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >> Christian Franke wrote: >> =20 >>> 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=3D-static-libgcc. To build fr= om >>> 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. >>> >>> =20 >> We already supply -lgcc --static-libgcc. Do you know why it still had >> issues? >> =20 > > The above is only set when linking the kernel image. > > 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. > > >> And I also doubt usefullness of pulling these functions since referenc= e >> to them is purely dummy: no relocation uses it so it will only increas= e >> code size. Another concern is the behviour of these functions in grub >> environment if they ever get called. >> >> =20 > > AFAICS from the gcc source, the functions are used in EH stack > unwinding code in libgcc. The compiler itself does not generate calls > to these functions. > > > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigCDDCEE5467A299990F25768D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAkvTYHsACgkQNak7dOguQgm/FwD8C3Iyp1X8VuIBkv9wlxqbcUGs PU49+e3KZ0ScfUReOxYBAIriJcNAGK7pV3HmUebglqlDmn4oy1Fu38VYDz9MmDIG =7Cwv -----END PGP SIGNATURE----- --------------enigCDDCEE5467A299990F25768D--