threadhead
11-23-2003, 06:28 PM
hi!
ive been programming a small lkm and encountering
the following problem when insmodding it.
(i am running a 2.4.20 kernel)
mod.o: unsresolved symbol __start___ksymtab
mod.o: unsresolved symbol __stop___ex_table
mod.o: unsresolved symbol __start___ex_table
the code i am trying to insert looks like that:
#define __KERNEL__
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/uaccess.h>
MODULE_LICENSE("GPL");
MODULE_AUTHOR("me");
extern struct module_symbol __start___ksymtab[];
extern struct module_symbol __stop___ksymtab[];
extern const struct exception_table_entry __start___ex_table[];
extern const struct exception_table_entry __stop___ex_table[];
extern const char __start___kallsyms[] __attribute__ ((weak));
extern const char __stop___kallsyms[] __attribute__ ((weak));
...
...
...
why are these symbols unresolved?
i found these declarations in kernel/module.c in the linux source tree.. so it should be working.
how can i let these symbols resolve and make my lkm work?
thanx ;)
ive been programming a small lkm and encountering
the following problem when insmodding it.
(i am running a 2.4.20 kernel)
mod.o: unsresolved symbol __start___ksymtab
mod.o: unsresolved symbol __stop___ex_table
mod.o: unsresolved symbol __start___ex_table
the code i am trying to insert looks like that:
#define __KERNEL__
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/uaccess.h>
MODULE_LICENSE("GPL");
MODULE_AUTHOR("me");
extern struct module_symbol __start___ksymtab[];
extern struct module_symbol __stop___ksymtab[];
extern const struct exception_table_entry __start___ex_table[];
extern const struct exception_table_entry __stop___ex_table[];
extern const char __start___kallsyms[] __attribute__ ((weak));
extern const char __stop___kallsyms[] __attribute__ ((weak));
...
...
...
why are these symbols unresolved?
i found these declarations in kernel/module.c in the linux source tree.. so it should be working.
how can i let these symbols resolve and make my lkm work?
thanx ;)