ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] lj_udrepper --as-needed libtool moronic idiots
@ 2006-06-17  0:09 Alexey Tourbin
  2006-06-17  9:39 ` Alexey Borovskoy
  2006-06-17 12:31 ` Michael Shigorin
  0 siblings, 2 replies; 4+ messages in thread
From: Alexey Tourbin @ 2006-06-17  0:09 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]

----- Forwarded message from rss2mail2 -----

DSO memory waste II at 15-06-2006 08:12:37
http://udrepper.livejournal.com/11056.html

[...]

   The third question/comment was why --as-needed isn't just always used.
   This is just as stupid as always use hidden symbols visibility via the
   new gcc options like certain distributions do it now for KDE. Both
   these methods change the ABI of a program sooner or later. Obviously,
   default hidden visibility prevents symbols from being exported unless
   specified otherwise. This means it'll break some code and the
   appropriate visibility attributes have to be added and then new
   binaries have to be provided. That's nothing a sane person should do.
   Similarly for --as-needed. The linked-in DSO form a predictable search
   scope for symbol lookups. Removing a DSO will change the search scope
   and some lookups will suddenly find a different definition or will
   fail. This will only affect symbol lookups performed dynamically via
   dlsym() but it has happened.

   Fortunately this is a rare occurrence but nevertheless reason enough
   to not use --as-needed explicitly. Add the option to the Makefiles in
   the the right places, it's not hard. I seem to remember that somebody
   said this would create problems with libtool. Well, too bad. I've said
   all along the libtool of today is one of the biggest hindrances of
   development and deployment and shouldn't be used. When we wrote the
   first libtool version it was only meant to iron over the minor
   differences between various ELF tools. Since then it has been hijacked
   by those idiots who wanted to support the moronic dynamic linking
   methods used on winblowz and hpsux. Ever since that happened libtool
   is nothing but a problem for sane ELF platforms and should be avoided
   [1]. So, just avoid using libtool and link normally with the gcc
   driver. Then using --as-needed is no problem at all.


   [1] Including the wrappers around dlopen() and dlsym() which are
   completely unnecessary on Linux and just make programs slow and
   bloated.


----- End forwarded message -----

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] lj_udrepper --as-needed libtool moronic idiots
  2006-06-17  0:09 [devel] lj_udrepper --as-needed libtool moronic idiots Alexey Tourbin
@ 2006-06-17  9:39 ` Alexey Borovskoy
  2006-06-17 12:31 ` Michael Shigorin
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey Borovskoy @ 2006-06-17  9:39 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

* Суббота 17 Июнь 2006 13:09 Alexey Tourbin

> Ever since that happened libtool is nothing but a problem for
> sane ELF platforms and should be avoided [1]. So, just avoid
> using libtool and link normally with the gcc driver.

Что обычно требуется оторвать-прикрутить?

> Then 
> using --as-needed is no problem at all.
>
>
>    [1] Including the wrappers around dlopen() and dlsym()
> which are completely unnecessary on Linux and just make
> programs slow and bloated.

-- 
Алексей.
GPG key fingerprint
DBB3 1832 13C6 5C96 4A58  4AFF 78F7 159F 66AD 8D7E

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] lj_udrepper --as-needed libtool moronic idiots
  2006-06-17  0:09 [devel] lj_udrepper --as-needed libtool moronic idiots Alexey Tourbin
  2006-06-17  9:39 ` Alexey Borovskoy
@ 2006-06-17 12:31 ` Michael Shigorin
  2006-06-17 12:51   ` Dmitry V. Levin
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2006-06-17 12:31 UTC (permalink / raw)
  To: devel

On Sat, Jun 17, 2006 at 04:09:59AM +0400, Alexey Tourbin wrote:
>    The third question/comment was why --as-needed isn't just
>    always used.  This is just as stupid as always use [...]
[...]
>    That's nothing a sane person should do.
>    Similarly for --as-needed.

Ну.  И кто тут размахивал флагом и орал "саботаж"?

> ----- End forwarded message -----

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] lj_udrepper --as-needed libtool moronic idiots
  2006-06-17 12:31 ` Michael Shigorin
@ 2006-06-17 12:51   ` Dmitry V. Levin
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry V. Levin @ 2006-06-17 12:51 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

On Sat, Jun 17, 2006 at 03:31:45PM +0300, Michael Shigorin wrote:
> On Sat, Jun 17, 2006 at 04:09:59AM +0400, Alexey Tourbin wrote:
> >    The third question/comment was why --as-needed isn't just
> >    always used.  This is just as stupid as always use [...]
> [...]
> >    That's nothing a sane person should do.
> >    Similarly for --as-needed.
> 
> Ну.  И кто тут размахивал флагом и орал "саботаж"?

Я, честно говоря, не понял, что Дреппер всё-таки хотел этим сказать.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-17 12:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-17  0:09 [devel] lj_udrepper --as-needed libtool moronic idiots Alexey Tourbin
2006-06-17  9:39 ` Alexey Borovskoy
2006-06-17 12:31 ` Michael Shigorin
2006-06-17 12:51   ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git