grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] New object format


From: Bean
Subject: Re: [PATCH] New object format
Date: Tue, 28 Jul 2009 19:00:58 +0800

Hi,

Update:

Now global symbol must be defined using GRUB_EXPORT macro, otherwise
it'd be removed from the module symbol list. I also add GRUB_EXPORT to
modules in i386-pc platform.

Some reason to define global symbols explicitly:

For modules that consists of multiple files, some external function is
used to communicate with each other, they should not be exported, for
example, sh.mod and lua.mod all have many function that's not static.
It'd be nice to distinguish between function we want to export and
those used by other files in the same module.

For normal module, exported function is not common, for those that
consist of functions mainly, we can move it to the library, which
export all external function so that we don't need GRUB_EXPORT anyway.

The export symbol is not cheap, by exporting only the symbols we need,
we can save some space.

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]