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


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to