Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 22:25:12 -0500 (EST)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Alexander Kabaev <ak03@gte.com>
Cc:        Terry Lambert <tlambert2@mindspring.com>, dfr@nlsystems.com, current@FreeBSD.ORG
Subject:   Re: [PATCH: libc]Re: gnome on current
Message-ID:  <Pine.GSO.4.10.10210302224360.23231-100000@pcnet1.pcnet.com>
In-Reply-To: <20021030220450.316fe0ac.ak03@gte.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Oct 2002, Alexander Kabaev wrote:

> On Wed, 30 Oct 2002 15:51:48 -0800
> Terry Lambert <tlambert2@mindspring.com> wrote:
> 
> > NO.
> > 
> > If you have a library that's linked to a library containing string
> > symbols, then no other library gets a chance to replace to symbols
> > with its own strong symbols.  The first strong symbol always wins,
> > and the search is defined to be depth-first.
> 
> You are ignoring the fact, that objects, loaded at the application startup
> time are getting searched first, followed RTLD_GLOBAL objects, and finally by
> the loaded object DAG. LD_PRELOAD objects override them all.
> 
> > 
> > First strong/last weak should win.  You are saying "last weak" is not
> > winning.  That's a linker bug.
> 
> If last weak will win, the normal case when Xthrstub is loaded _after_ libc_r
> will break. The only way to really fix this is to export pthread_ symbols as
> strong in libc_r. Exporting them as weak sounds like is a mistake which
> should be fixed.

I disagree.  See Solaris 6, 7, 8 & 9 for an example.

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10210302224360.23231-100000>