[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: Gecko/20080311 Firefox/

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:


  Message sent via/by Savannah

reply via email to

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