ld Error Please Help

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
johnnyde

ld Error Please Help

Post by johnnyde »

Hi

I am trying to use this command in linux. I don't know much about 'ld'
so i am not able to interpret this error message.
This is a small basic opertaing system (fritz os)
please help

Command
ld -Ttext=0x9000 -o ../source/temp/kernel32 ../source/object/kernelasm.o ../source/object/kernel32.o -e 0x0
Error
../source/object/kernel32.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'

Thanks in Advance
Johnny
carbonBased

RE:ld Error Please Help

Post by carbonBased »

It means that the linker can't find a symbol that the GCC C++ runtime support relies on.

It's Fritz a C++ kernel?  If not, compile with gcc, not gxx or g++

If it is actually a C++ kernel, then you'll need some command line switches for when actually compiling the source, such as:

-ffreestanding -fno-builtin -nostdlib -nostdinc -fno-rtti -fno-exceptions -fno-inline -O0 -nostartfiles

Cheers,
Jeff
Post Reply