[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Standalone Application in GRUB
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: Standalone Application in GRUB |
Date: |
Sun, 03 Jun 2012 21:14:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
On 03.06.2012 21:00, Parul Aggarwal wrote:
> Hi Vladimir,
>
> I understand what you are saying and grub modules seems the right way to
> go.
>
> Other two apparoaches I can think of is:
>
> 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.
>
> 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 this
> library interally) static library which should resolve the hang issue.
>
Not going to work. GRUB is not intended to be statically linked in this
sense. GRUB doesn't use any glibc on runtime.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature