Re: RFC: multilib support for uClibc

2008-01-23 Thread Rob Landley
On Tuesday 22 January 2008 06:37:35 Bernd Schmidt wrote: > For the Blackfin, we need to compile several versions of uClibc and > install them in such a way that the cross compilers will find them. To > do this, we've come up with the following patch (combined from multiple > contributions by Jie Z

Re: [PATCH] _dl_iterate_phdr rework

2008-01-23 Thread Carmelo AMOROSO
Joakim Tjernlund wrote: > On Tue, 2008-01-22 at 15:44 +0100, Carmelo AMOROSO wrote: > >> Hi All, >> the attached patch will solve an problem when statically linking >> a C++ application with gcc configured to use unwind-dw2-fde-glibc >> implementation. >> This needs _dl_iterate_phdr to be inclu

Re: [PATCH] _dl_iterate_phdr rework

2008-01-23 Thread Joakim Tjernlund
On Tue, 2008-01-22 at 15:44 +0100, Carmelo AMOROSO wrote: > Hi All, > the attached patch will solve an problem when statically linking > a C++ application with gcc configured to use unwind-dw2-fde-glibc > implementation. > This needs _dl_iterate_phdr to be included into libc.a instead of libdl.a,

Re: [PATCH] _dl_iterate_phdr rework

2008-01-23 Thread Carmelo Amoroso
Hi All, Please discard my previous patch and look at this one. I forgot to add the dl-support.c file that implement the _dl_aux_init function used, when statically linking, to initialize the _dl_phdr and _dl_phnum symbols used into _dl_iterate_phdr. Moreover, __uClibc_main needs to call the _dl_aux