Skip to contentSkip to conversation

Multiple file module build problems

DISCUSSION Lee Ho 1 participant 1 message Mar 1, 2001

lore
Share & tools
lore

Lee Ho

author
#0 lore raw

It seems that linker tried to build executable file. When building multiple module source into one module object file, ld with '-r' option is used.

ld -r -o scharmod.o schar.o procschar.o

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne Mail : [email protected] (work), [email protected] (personal) Homepage : http://flyduck.com, http://linuxkernel.to

Collins, Tom Wrote:

I am trying to build a multiple-file kernel module, and am having some difficulty. It seems that the linker is trying to build and executable.

The link command is:

ld -m elf_i386 -o scharmod.o schar.o procschar.o