Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Дата
Msg-id 200201211309.g0LD9a421146@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu
Список pgsql-hackers
Christopher Kings-Lynne wrote:
> > On Sun, Jan 20, 2002 at 01:40:17PM -0500, Tom Lane wrote:
> > > What I would *like* to do is make the same change in all the
> > > port/dynloader files that reference RTLD_LAZY:
> > >     src/backend/port/dynloader/openbsd.h
> >
> > I can't speak for other platforms but openbsd only has RTLD_LAZY.
> 
> FreeBSD supports both:
> 
>      RTLD_LAZY   Each external function reference is resolved when the func-
>                  tion is first called.
> 
>      RTLD_NOW    All external function references are bound immediately by
>                  dlopen().
> 
>      RTLD_LAZY is normally preferred, for reasons of efficiency.  However,
>      RTLD_NOW is useful to ensure that any undefined symbols are discovered
> 

Interesting LAZY has better efficiency.  Seems we should just keep LAZY
as our default for future releases and tell people if they link to bad
object files, they should expect trouble.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] PostgreSQL Licence: GNU/GPL
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] PostgreSQL Licence: GNU/GPL