linking in LKM

gshekar@in.ibm.com
Mon, 17 Jul 2000 19:32:44 +0530


Hi,
Iam trying to build a Loadable kernel module, which makes use of
some of the functions of library filesystems.a,
so I tried to link above library file in my makefile using ld command, Iam
getting error as unresolved symbol for functions which i use in my LKM
I would like to know whether my approach is correct or the syntax used for
ld is wrong or is there any alternatives

i.e., ld -m elf_i386 -r -o xyz1.o filesystems.a xyz2.o
or
ld -m elf_i386 -r -o xyz1.o -L. -lfilesystems.a xyz2.o

where xyz2.o is object file for my source file which uses one of the
functions of filesystems.a

thanks and regards

girish

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/