From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SbGGe-0007PQ-CR for mharc-grub-devel@gnu.org; Sun, 03 Jun 2012 15:15:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbGGc-0007PE-4M for grub-devel@gnu.org; Sun, 03 Jun 2012 15:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbGGa-0004pg-Ed for grub-devel@gnu.org; Sun, 03 Jun 2012 15:15:09 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:55949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbGGa-0004oj-5b for grub-devel@gnu.org; Sun, 03 Jun 2012 15:15:08 -0400 Received: by wefh52 with SMTP id h52so3023803wef.0 for ; Sun, 03 Jun 2012 12:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=98Q866zWQgFB72p7JrQUwh2fc+LrirNcjirZL723+Hk=; b=MzI0bNhru4lDIQQTfdq5H5ROGRA/oXe1wZfu2Z8fslocMGNXN70Xw7Qw+ug24woywf 10ouO6k8ySrcwRKj7DD4GGxJhkPnVwya8aku17njohV15N8TGAQThR62ZQkxvrqgz6xw Mmb0GVRJTY0xoabD6YIxX15xkyrrnHg+9lymTwkcVEA+9ckRNzruseh3FC44CfmfhW0m wZY5eVhj6khs9gCKJ3EKJRAvz1U7TxX6wZFEtOCdhdjXUTrRjo25w1zhKSBVxsSbie4W BALWXE3tGCwUJ+EiBe2QmWdq3X8EM7uc29X2BmC0BdIe0C5H97ZMmkAQFxQU6QR3YG6v N2sA== Received: by 10.216.214.155 with SMTP id c27mr8905577wep.116.1338750906189; Sun, 03 Jun 2012 12:15:06 -0700 (PDT) Received: from fedora.x201.phnet (49-52.203-62.cust.bluewin.ch. [62.203.52.49]) by mx.google.com with ESMTPS id gv7sm14784442wib.4.2012.06.03.12.15.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jun 2012 12:15:05 -0700 (PDT) Message-ID: <4FCBB7A3.2010301@gmail.com> Date: Sun, 03 Jun 2012 21:14:43 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Standalone Application in GRUB References: <4FC73DDD.1000909@gmail.com> <4FC74761.6030206@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig791B3139E6BA93270835C5C4" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Sun, 03 Jun 2012 19:15:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig791B3139E6BA93270835C5C4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03.06.2012 21:00, Parul Aggarwal wrote: > Hi Vladimir, > =20 > I understand what you are saying and grub modules seems the right way t= o > go. > =20 > Other two apparoaches I can think of is: > =20 > 1. Make our standalone appliaction totally independent of GRUB like > memtest application. This way we can go with independent application > .bin running. You can always do this but you can't use GRUB functions this way. > =20 > 2. If we statically link the grub libraries to our standalone > application. We tried hello world program using grub_printf, and linked= > few grup static libraries. When we run the program the application got > hanged. Seems its because of few undefined symbols used in > grub_printf(). Now we are trying to link glibc (as grub_printf uses thi= s > library interally) static library which should resolve the hang issue. > =20 Not going to work. GRUB is not intended to be statically linked in this sense. GRUB doesn't use any glibc on runtime. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig791B3139E6BA93270835C5C4 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.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk/Lt64ACgkQNak7dOguQgnWxwD/V/qgqUljyaNwrsit6zaTle95 UmYh9jTymfnoYR3rAG8A/ApF0nuD28a4i+UDm9+6rKVh/v6V5l5Q0z7TeuiIS+OL =mUO3 -----END PGP SIGNATURE----- --------------enig791B3139E6BA93270835C5C4--