eCos uSTL 1.3 port for review

Jonathan Larmour jifl@jifvik.org
Fri Aug 7 13:13:00 GMT 2009


Sergei Gavrikov wrote:
> John Dallaway wrote:
> 
>>Hi Uwe
>>
>>Uwe Kindler wrote:
>>
>>
>>>thank you for your investigation and for your detailed error report.
>>>Does someone of the eCos folks know a better way to solve the
>>>__cxa_pure_virtual issue or should we go with Sergei's proposal
>>>
>>>-Wl,--defsym -Wl,__cxa_pure_virtual=0
>>
>>CYGPKG_INFRA is supposed to provide a replacement implementation of this
>>function. Did you try adding your own implementation of
>>__cxxabiv1::__cxa_pure_virtual() as discussed on the ecos-devel list?
> 
> 
> Hi Jonh,
> 
> Are such implementations (in pure.cxx) useful? I'm looking on linker
> group
> 
>     GROUP(libtarget.a libgcc.a libsupc++.a)
> 
>     $ nm install/lib/libtarget.a | grep __cxa_pure_virtual
>     00000000 T __cxa_pure_virtual
> 
> Okay it came there from infra_pure.o. Is it right? But, there is next
> implementation in libsupc++.a.
> 
>     $ nm i386-elf/i386-elf/lib/libsupc++.a 2>/dev/null | grep __cxa_pure_virtual
>              U __cxa_pure_virtual
>     00000000 T __cxa_pure_virtual

However since libtarget.a is mentioned first in the GROUP() it should use 
that first, before libsupc++. If that isn't happening, something odd is 
going on - generate a linker map to see.

Jifl
-- 
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine



More information about the Ecos-patches mailing list