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

[PATCH] _dl_iterate_phdr rework

2008-01-22 Thread Carmelo AMOROSO
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, and the implementation has been fixed to handle the static case to