I am able to reproduce this with the following small test:
extern int dcache_lock;
static __inline__ void d_drop(int * dentry)
{
(void)( &dcache_lock ) ;
printf("dentry %d %d", dentry, dcache_lock);
}
main()
{
printf("hi");
}
The problem occurs because of the -g. If you don't compile
with -g then it links okay. But our debug-generation code
is trying to create a dwarf reference to dcache_lock,
which is never defined.
-- Mike Murphy
-- mpm@xxxxxxx
-- quote of the day:
-- "Don't pick on people, jump on their failures, criticize their faults,
-- unless, of course, you want the same treatment. Be easy on people;
-- you'll find life a lot easier." (Eugene Peterson)
|