This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH RFC] introduce dl_iterate_phdr_parallel


On Mon, Aug 01, 2016 at 05:23:47PM -0300, Adhemerval Zanella wrote:
> >> Also I noticed other libcs (freebsd, uclibc, and musl) do not serialize
> >> the callback execution and adding a glibc specific symbol (the parallel
> >> version) would add more portabilities issues.  So I would prefer to work
> >> toward 2.
> > How does libgcc works on those systems? Or do they provide their own
> > unwinding?
> > 
> 
> I looked on the wrong implementation for FreeBSD10, the one actually
> used [1] does add locking on callback call. 
> 
And [2] is where it was added. Not surprisingly the reason for the
locking is C++ exception handling.

[2] https://github.com/freebsd/freebsd/commit/60e5d7d0529be9f877e67cf34013ac32320062f0

> So uclibc and musl my guess is neither actually work with libgcc unwinding.
> 
> [1] https://github.com/freebsd/freebsd/blob/f4f3cadf4f46110669367b597c4d31e1425f4cbd/libexec/rtld-elf/rtld.c
> 

--
			Gleb.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]