Subject: LKM on TS7200
To: None <>
From: Christos Eleftheriadis <>
List: port-arm
Date: 03/20/2006 23:31:16

I have compiled the fibonacci module from

But when I try to load the compiled module I get the following error

arm# modload -e fibo_lkmentry -p fibo.o
ld: internal error: aborting at
line 3835 in lang_place_orphans
ld: please report this bug
modload: can't prelink `fibo.o' creating `fibo'

Has anyone seen such a thing ?

Below is the output from the compile

arm# make
#   compile  LKM/main.o
cc -O2 -ffreestanding  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized=20
-Werror   -nostdinc -nostdinc -I. -I/root/LKM -isystem /usr/src/sys
-isystem /usr/src/sys/arch -D_KERNEL -D_LKM  -c    main.c
ld -r  -o tmp.o main.o
mv tmp.o fibo_tmp.o
objdump --syms --reloc fibo_tmp.o |  awk -f
/usr/src/sys/lkm/arch/arm/lkmtramp.awk > tmp.S
mv tmp.S fibo_tramp.S
#   compile  LKM/fibo_tramp.o
cc    -nostdinc -nostdinc -I. -I/root/LKM -isystem /usr/src/sys
-isystem /usr/src/sys/arch -D_KERNEL -D_LKM  -c -traditional-cpp  =20
ld -r   `objdump --syms --reloc fibo_tmp.o |  awk -f
/usr/src/sys/lkm/arch/arm/lkmwrap.awk`  -o tmp.o fibo_tmp.o
objcopy  `nm tmp.o | awk -f /usr/src/sys/lkm/arch/arm/lkmhide.awk`  tmp.o t=
mv tmp1.o tmp.o
mv tmp.o fibo.o