ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] lj_udrepper --as-needed libtool moronic idiots
Date: Sat, 17 Jun 2006 04:09:59 +0400
Message-ID: <20060617000958.GF25291@localhost.localdomain> (raw)

[-- 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 --]

             reply	other threads:[~2006-06-17  0:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-17  0:09 Alexey Tourbin [this message]
2006-06-17  9:39 ` Alexey Borovskoy
2006-06-17 12:31 ` Michael Shigorin
2006-06-17 12:51   ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060617000958.GF25291@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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