[arm-gnu] undefined reference to bswapsi2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] undefined reference to bswapsi2



Hi

I'm just trying to build a 2.6.17 Linux kernel for an arm target on a Ubuntu
system.

I get an undefined reference to bswapsi2 even though it is present in libgcc

that comes with the CodeSourcery package.

I must be doing something simply wrong. Can anyone help?

thanks
Shaun



shaun-laptop:~/linux-2.6.17$ make ARCH=arm CROSS_COMPILE=arm-none-eabi- all
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/compile.h
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
lib/built-in.o: In function `bitreverse':
deflate_syms.c:(.text+0x86c): undefined reference to `__bswapsi2'
make: *** [.tmp_vmlinux1] Error 1



bin/arm-none-eabi-objdump --disassemble
lib/gcc/arm-none-eabi/4.5.2/thumb2/libgcc.a  | grep bswapsi2
_bswapsi2.o:     file format elf32-littlearm
00000000 <__bswapsi2>: