Linux MIPS Architecture development
 help / color / mirror / Atom feed
* OProfile cannot be loaded as module...
@ 2005-10-07 23:59 David Daney
  2005-10-08  0:25 ` David Daney
  2005-10-13 22:55 ` Ralf Baechle
  0 siblings, 2 replies; 8+ messages in thread
From: David Daney @ 2005-10-07 23:59 UTC (permalink / raw)
  To: linux-mips

arch/mips/oprofile/common.c defines several symbols (op_model_mipsxx and 
op_model_rm9000) with __attribute__((weak)).  It then assumes that ELF 
linking conventions will prevail and there will be no problems if they 
are undefined.

The problem is if you try to load oprofile as a module.  The kernel 
module linker evidentially does not understand weak symbols and refuses 
to load the module because they are undefined.

Perhaps a single

extern struct op_mips_model plat_op_model;

That must be defined by each different implementation.  Deciding one 
which implementation would then be done at compile time instead of runtime.

I don't have a patch for this yet, but that is what I am thinking of doing.

David Daney.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-04-21 14:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07 23:59 OProfile cannot be loaded as module David Daney
2005-10-08  0:25 ` David Daney
2005-10-13 22:55 ` Ralf Baechle
2005-10-17 20:14   ` David Daney
2005-10-18 11:03     ` Ralf Baechle
2005-10-18 15:46       ` David Daney
2005-10-18 16:38         ` Ralf Baechle
2006-04-21 14:33   ` Atsushi Nemoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox