__cxa_atexit and __cxa_finalize implementation

Peter S. Mazinger ps.m at gmx.net
Mon Sep 26 07:26:57 UTC 2005


On Sat, 24 Sep 2005, Stephen Warren wrote:

> Peter S. Mazinger wrote:
> > On Fri, 23 Sep 2005, Stephen Warren wrote:
> >>I get this error:
> >>
> >>/opt/gcc-3.4.3-uclibc-0.9.27-i486/bin/i486-linux-uclibc-g++ \
> >>     -o dl-2 '-DDSO_NAME="./dso-2.so"' dl.cpp -ldl
> >>
> >>/mnt/severn_home_nobackup/swarren/gcc-3.4.3-uclibc-0.9.27-i486/bin/../lib/gcc/i486-linux-uclibc/3.4.3/../../../../i486-linux-uclibc/lib/crt1.o(.text+0x20): 
> >>In function `_start':
> >>crt0.S: undefined reference to `__uClibc_start_main'
> >>collect2: ld returned 1 exit status
> > 
> > Are you using 0.9.27 or current? 0.9.27 used crt0.S and 
> > __uClibc_start_main, but 0.9.28 uses crt1.S and __uClibc_main.
> > For sure I wouldn't do any 0.9.27 tests (and your tests results won't be 
> > relevant for acceptance into svn), too many things changed.
> > For sure your linking stage is screwed up.
> 
> I'm running the latest SVN version of uClibc.

I have asked, because above the name is 'gcc-3.4.3-uclibc-0.9.27-i486'
Something is mixed up, because it tries to use the older crt file 
(that asks for __uClibc_start_main) but the newer libc.

> 
> I guess there's an issue with the way I'm building it. I'll try plugging 
> the patched version into buildroot and see if it all works that way...
> 
> > My patches are working natively, haven't tested buildroot, but should be 
> > the same.
> 
> Hmmm. You mean your whole distro is uClibc-based, so you're not 
> cross-compiling? Are there some HOWTOs anywhere on setting this up?

I am using gentoo-embedded, you can set it up like normal gentoo, only it 
is based on uClibc (gentoo didn't moved yet officially to 0.9.28 though 
due to some problems w/ malloc changes from 0.9.27 to 0.9.28)
You can set it up in a chroot, if you don't want it system-wide. You will 
also get a pretty good cross-compiler environment (if you need it).

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list