[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #22750] broken module init
From: |
Bean |
Subject: |
[bug #22750] broken module init |
Date: |
Thu, 27 Mar 2008 10:12:33 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 |
Follow-up Comment #2, bug #22750 (project grub):
I'm sorry i get confused. In fact, grub_mod_init is defined in biosdisk.c.
GRUB_MOD_INIT will expand to:
static void grub_mod_init (grub_dl_t mod __attribute__ ((unused)))
__attribute__ ((used));
void grub_biosdisk_init (void);
void grub_biosdisk_init (void) { grub_mod_init (0); }
static void grub_mod_init (grub_dl_t mod __attribute__ ((unused)))
{
// INIT function
}
grub_mod_init is private so that it won't conflict with other module, but
it's stored in the object file, you can verify it with nm:
nm biosdisk.mod
mod-biosdisk.c is used to put the module name and dependence in the output
file, so that the loader can load them automatically.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22750>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/