From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O3F0A-00078k-Q8 for mharc-grub-devel@gnu.org; Sat, 17 Apr 2010 16:52:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3F08-00078Y-Nr for grub-devel@gnu.org; Sat, 17 Apr 2010 16:52:28 -0400 Received: from [140.186.70.92] (port=59959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3F05-00076w-FS for grub-devel@gnu.org; Sat, 17 Apr 2010 16:52:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3F03-0002Lc-Os for grub-devel@gnu.org; Sat, 17 Apr 2010 16:52:25 -0400 Received: from mail-bw0-f225.google.com ([209.85.218.225]:50694) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3F03-0002LQ-GT for grub-devel@gnu.org; Sat, 17 Apr 2010 16:52:23 -0400 Received: by bwz25 with SMTP id 25so3612246bwz.8 for ; Sat, 17 Apr 2010 13:52:22 -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=NDiKoNhPjQ6mR34vRjYJpRrLCSrDYvryiSOw2mtQzA4=; b=du+zgvZmSKo+0W6/9KhL3LQ92lXDJ8hRankR6ndqC8IUWMBLHCg9IZes+4wlkvrTZ+ ksMmZ5fGUbVBt0XhwTOGQil2365F7zGpwiuEVJ9aIEPguXlp7qW1YD41kf2nYXvXtEmZ T5rEB2KSclMOjMfGdnanx3so7JEK1fsZxkC6s= 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=krB5SLWaojba/L1K3C7f+IkG5efY/fLxHO/YnpO+9SHpWA/sNfCQ97AgC1CWOhNx5p ILh3VeSvAjVSFS2NuBUpJO5z4gC3fvP+oYa5b3643QlJgCt92WvHev0K637x7j12KW36 gvqAx3IgoJDDBZTRIY+dWPXTvOdlJbcAtzgb4= Received: by 10.204.11.22 with SMTP id r22mr3070630bkr.120.1271537541988; Sat, 17 Apr 2010 13:52:21 -0700 (PDT) Received: from debian.bg45.phnet (52.115.63.81.cust.bluewin.ch [81.63.115.52]) by mx.google.com with ESMTPS id 16sm2446076bwz.13.2010.04.17.13.52.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Apr 2010 13:52:21 -0700 (PDT) Message-ID: <4BCA1F7B.7080601@gmail.com> Date: Sat, 17 Apr 2010 22:52:11 +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="------------enig43078893C72E07D22E801A71" 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, 17 Apr 2010 20:52:29 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig43078893C72E07D22E801A71 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. > Doesn't it risk linking e.g. __bswapsi2 into every module which uses it during partial link? It would increase module size on RISC > >> 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 --------------enig43078893C72E07D22E801A71 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 iF4EAREKAAYFAkvKH4IACgkQNak7dOguQglKfAD/UFzxozNPieghZIrM9iwYlK68 X72MnnwbvxuLV0Ldx0EA+wbSrzr3C/MW3FYkIWXZx3HlMnx583eN23SE0QN8rsgU =qBo/ -----END PGP SIGNATURE----- --------------enig43078893C72E07D22E801A71--