Subject: LKM on TS7200
To: None <port-arm@netbsd.org>
From: Christos Eleftheriadis <christos.eleftheriadis@gmail.com>
List: port-arm
Date: 03/20/2006 23:31:16
Greetings,

I have compiled the fibonacci module from

http://home.unix-ag.org/bmeurer/NetBSD/howto-lkm.html

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



arm# modload -e fibo_lkmentry -p fibo_post.sh fibo.o
ld: internal error: aborting at
/home/builds/ab/netbsd-3-0-RELEASE/src/gnu/dist/binutils/ld/ldlang.c
line 3835 in lang_place_orphans
ld: please report this bug
modload: can't prelink `fibo.o' creating `fibo'
arm#

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
fibo_tramp.S
ld -r   `objdump --syms --reloc fibo_tmp.o |  awk -f
/usr/src/sys/lkm/arch/arm/lkmwrap.awk`  -o tmp.o fibo_tmp.o
fibo_tramp.o
objcopy  `nm tmp.o | awk -f /usr/src/sys/lkm/arch/arm/lkmhide.awk`  tmp.o t=
mp1.o
mv tmp1.o tmp.o
mv tmp.o fibo.o