ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] #12712 - nagios PL_perlio_mutex
Date: Sat, 8 Sep 2007 14:52:19 +0400
Message-ID: <20070908105219.GA6051@solemn.turbinal> (raw)

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

Есть очень неприятная ситуация.  Оказывается, требуется более глубокое
понимание рзарешения символов в ELF'ах, чем то, которое у меня имеется.

Ситуация такая.  До последнего времени я думал, что вносить в version
script нужно только символы типа "T" и "D", то есть функции и глобальные
переменные.  Но глобальныме переменные на самом деле бывают двух типов --
"D" и "B" (data и bss).  Различие между ними я не совсем понимаю.
Иногда мне казалось, что "B" -- это объявление типа "extern int var",
которое должно разрешаться в соответствущую пременную "D", объявленную
уже без extern.  Но это, по-видимому, далеко от истины.

$ grep PL_perlio_mutex sym
nagios  /usr/sbin/nagios        B       PL_perlio_mutex
nginx   /usr/sbin/nginx B       PL_perlio_mutex
perl-base       /usr/bin/perl5.8.8      U       PL_perlio_mutex
perl-base       /usr/lib/libperl.so.5.8.8       B       PL_perlio_mutex
perl-suidperl   /usr/bin/sperl5.8.8     U       PL_perlio_mutex
$

Другими словами, nagios и nginx как бы "ссылаются" на переменную типа
"B" в libperl.so.5.8, но эта ссылка почему-то имеет тип "B", а не "U".
Замечу, что сам perl ссылается на PL_perlio_mutex через "U".

Кто знает в чём тут дело?  К сожалению изучить как написан binutils --
это требуется много отваги.  Там этот "биг дил" который libbfd он
вездесущ и совсем не способствует пониманию кода.

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

             reply	other threads:[~2007-09-08 10:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-08 10:52 Alexey Tourbin [this message]
2007-09-08 13:51 ` Alex Myltsev
2007-09-08 13:56   ` Alex Myltsev
2007-09-08 14:07   ` Alexey Tourbin
2007-09-08 14:43     ` Alexey Tourbin
2007-09-08 14:59       ` Alexey Tourbin

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=20070908105219.GA6051@solemn.turbinal \
    --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