gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] linking : `__gxx_personality_v0' question


From: Arnauld Michelizza
Subject: [Gm2] linking : `__gxx_personality_v0' question
Date: Tue, 19 Apr 2011 11:36:46 +0200

Hi,

I'd like to write a simple kernel for x86 on modula-2 (I already wrote
one in C).
I just had a try, but I currently have a linking problem :

  $ gm2 -c -m32 Kernel.mod
  $ ld -m elf_i386 --oformat binary -Ttext 1000 -e _M2_Kernel_init
Kernel.o -o kernel
  Kernel.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'

While looking in Kernel.o :

  $ nm Kernel.o
  0000000000000000 b MyScreen
  0000000000000002 t PutCharOnXY
  0000000000000000 T _M2_Kernel_finish
  0000000000000030 T _M2_Kernel_init
                               U __gxx_personality_v0

It seems that __gxx_personality_v0 is related with c++ but I can't
figure what it does and if it's really necessary to use that function.
Anyway, I'm not totaly sure I used 'ld' the right way.

Any help ?

Arnauld



reply via email to

[Prev in Thread] Current Thread [Next in Thread]