[haiku-development] Re: __cxa_atexit missing from libroot.so

  • From: Paul Davey <plmdvy@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 14 Apr 2010 00:47:40 +1200

On Wed, Apr 14, 2010 at 12:08 AM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>
> On 2010-04-13 at 10:21:43 [+0200], Paul Davey <plmdvy@xxxxxxxxx> wrote:
>> On Tue, Apr 13, 2010 at 8:03 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>> > On 2010-04-13 at 05:47:09 [+0200], Paul Davey <plmdvy@xxxxxxxxx> wrote:
>> >> I cant find __cxa_atexit in libroot.so
>> >> Is there a reason it isn't there or is this a bug?
>> >
>> > Is there a reason it should be there?
>>
>> clang uses it for certain C++ things. its part of the Itanium C++
>> abi... there is a file implementing it in glibc.
>
> Indeed the ABI specs say it needs to be provided by the implementation's
> runtime. Since it needs to work consistently with atexit() that obviously has
> to be the C library. __cxa_finalize() is missing, too.
>
>> I may be able to stop clang using it but I think it would be better to
>> have it...
>
> Please file a Trac ticket.

http://dev.haiku-os.org/ticket/5718
there it is...

>
>> I wonder how gcc 4.3.3 is told not to use it since it uses it by
>> default too I think.
>
> When building a native compiler gcc's configure checks whether the function
> is available and uses it, when that is the case.
>
> CU, Ingo
>
>

Other related posts: