Re: undefined reference to `__stop___ksymtab', etc.

James Bottomley (
Mon, 27 Jan 1997 08:58:44 -0600

> I can't get kernel versions since 2.1.18 to compile with modules support
> enabled. Every time I try it I get:
> kernel/kernel.o: In function `init_modules':
> kernel/kernel.o(.text+0x3fe5): undefined reference to `__stop___ksymtab'
> kernel/kernel.o(.text+0x3fea): undefined reference to `__start___ksymtab'
> kernel/kernel.o(.data+0x3620): undefined reference to `__start___ksymtab'
> kernel/kernel.o(.data+0x3634): undefined reference to `__start___ex_table'
> kernel/kernel.o(.data+0x3638): undefined reference to `__stop___ex_table'
> make: *** [vmlinux] Error 1

This happens because the linker isn't creating the `magic' variables that
refer to the beginning and end of the various elf sections that have recently
been added to the kernel.

> I know there has been discussion about this problem on this list but I
> have missed the thread. So what is the fix?

The fix is to upgrade to binutils- However, I found that the linker
that came with the binary distribution also had this problem. The solution
for me was to compile the linker from the binutils source.

Hope this helps,

James Bottomley