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

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