[arm-gnu] Linking error in arm-none-linux-gnueabi toolchain

Umar Qureshey umar.qureshey at outlook.com
Thu Dec 20 06:30:48 UTC 2012


Hi,
I am trying to compile using 

arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2012.09-64) 4.7.2

I am getting linking errors upon issuance of this command:

arm-none-linux-gnueabi-ld -p -X -T arch/arm/vmlinux.lds arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o init/version.o \
                --start-group \
                arch/arm/kernel/kernel.o arch/arm/mm/mm.o arch/arm/mach-clps711x/clps711x.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
                 drivers/serial/serial.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/video/video.o \
                net/network.o \
                arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a /home/umar/iradt/arm-linux/lib/lib.a \
                --end-group \
                -o vmlinux
init/main.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
init/main.o:(.ARM.exidx.text.init+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
init/main.o:(.ARM.exidx.text.init+0x8): undefined reference to `__aeabi_unwind_cpp_pr1'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x8): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x10): undefined reference to `__aeabi_unwind_cpp_pr1'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x18): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x20): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x38): undefined reference to `__aeabi_unwind_cpp_pr1'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x40): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx.text.init+0x48): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/kernel/kernel.o:(.ARM.exidx+0x10): undefined reference to `__aeabi_unwind_cpp_pr0'
[snipped]
arch/arm/nwfpe/math-emu.o: In function `estimateSqrt32':
:(.text+0x112c): undefined reference to `__aeabi_uidiv'
:(.text+0x114c): undefined reference to `__aeabi_uldivmod'
:(.text+0x117c): undefined reference to `__aeabi_uidiv'
arch/arm/nwfpe/math-emu.o: In function `estimateDiv128To64':
:(.text+0x39f4): undefined reference to `__aeabi_uldivmod'
:(.text+0x3a10): undefined reference to `__aeabi_uldivmod'
arch/arm/nwfpe/math-emu.o: In function `float32_div':
:(.text+0x4700): undefined reference to `__aeabi_uldivmod'
arch/arm/nwfpe/math-emu.o: In function `float32_rem':
:(.text+0x48a4): undefined reference to `__aeabi_uldivmod'
arch/arm/nwfpe/math-emu.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
arch/arm/nwfpe/math-emu.o:(.ARM.exidx+0x20): undefined reference to `__aeabi_unwind_cpp_pr0'
[snipped]

All these symbols resolve within libgcc or thereabouts because I checked with nm but don't know why the linker is unable to find.

Not sure if this'll help but the object code is compiled with:

make CFLAGS="-D__KERNEL__ -I/home/umar/iradt/arm-linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-builtin-sprintf -Wno-packed -Wno-pointer-sign -fno-common -pipe  -march=armv4 -mtune=arm7tdmi -msoft-float " -C  arch/arm/lib

Thanks & Regards,
Umar 		 	   		  


More information about the arm-gnu mailing list