ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] PIE Executables
Date: Thu, 22 May 2008 10:14:05 +0300
Message-ID: <20080522071403.GA6179@localhost.localdomain> (raw)
In-Reply-To: <200805220950.27178.ledest@gmail.com>

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

On Thu, May 22, 2008 at 09:50:27AM +0300, Led wrote:
> Thursday, 22 May 2008 08:02:03 Kirill A. Shutemov написав:
> > On Thu, May 22, 2008 at 03:04:58AM +0300, Led wrote:
> > > Thursday, 22 May 2008 02:41:59 Dmitry V. Levin написав:
> > > > On Thu, May 22, 2008 at 01:06:54AM +0300, Led wrote:
> > > > > Thursday, 22 May 2008 00:49:17 Dmitry V. Levin написав:
> > > > > > On Wed, May 21, 2008 at 11:44:39PM +0300, Led wrote:
> > > > > > > Wednesday, 21 May 2008 22:21:33 Kirill A. Shutemov написав:
> > > > > > > > On Wed, May 21, 2008 at 09:02:42PM +0300, Led wrote:
> > > > > > > > > Забавный случай:
> > > > > > > > >
> > > > > > > > > $ file ~/tmp/autofs-buildroot/usr/sbin/automount
> > > > > > > > > automount: ELF 64-bit LSB shared object, x86-64, version 1
> > > > > > > > > (SYSV), for GNU/Linux 2.6.9, stripped
> > > > > > > > >
> > > > > > > > > ?
> > > > > > > > > Естественно, rpmbuild (fixup-libraries) делает ему "chmod
> > > > > > > > > 644" :(
> > > > > > > >
> > > > > > > > Нет, это не естественно.
> > > > > > > > shared object -- это и shared library и position independed
> > > > > > > > executable. В fixup-libraries есть эвристика для отделения мух
> > > > > > > > от котлет. chmod, по идее, должен делаться только для shared
> > > > > > > > library.
> > > > > > >
> > > > > > > Нет там такой эвристики.
> > > > > >
> > > > > > Я эту эвристику туда поместил.  Если её оттуда не убрали, то она
> > > > > > там есть. Если бы её не было, то ничего бы не работало.
> > > > > >
> > > > > > Маловероятно, но, возможно, эвристика дала сбой?
> > > > >
> > > > > Я ведь не придумал. Я поставил "затычки" перед fixup-libraries и
> > > > > после него. До fixup-libraries - 755, после 644. Да и на консоль
> > > > > выводит, что /usr/sbin/automount "чмодит" в 644. Могу полный лог
> > > > > сборки прикрепить,
> > > >
> > > > В этом нет смысла.
> > > >
> > > > > если в рассылку пропустят. Или возьмите autofs-5.0.3 и соберите.
> > > >
> > > > Где можно взять?
> > >
> > > autofs-5.0.3-alt0.1.src.rpm в /i/D
> > > Для проявления эффекта заменить в спеке:
> > > -%make_build DAEMON_CFLAGS= DAEMON_LDFLAGS=
> > > +%make_build
> >
> > Эвристику ломает преждеверменный strip. Опция -s при линковке удаляет
> > символ __preinit_array_end по которому shared library отделяется от
> > position independed executable.
> 
> Точно! Спасибо!
> Надо бы это где-то задокументировать. Потому как ИМХО неочевидно, что strip 
> при сборке у нас, получается, недопустим :(

Я считаю, что это слабость эвристики. Нужно что-то делать.

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/

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

  reply	other threads:[~2008-05-22  7:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21 18:02 Led
2008-05-21 18:16 ` Led
2008-05-21 18:24 ` Andrey Rahmatullin
2008-05-21 19:21 ` Kirill A. Shutemov
2008-05-21 20:44   ` Led
2008-05-21 21:49     ` Dmitry V. Levin
2008-05-21 22:06       ` Led
2008-05-21 22:34         ` Led
2008-05-21 23:41         ` Dmitry V. Levin
2008-05-22  0:04           ` Led
2008-05-22  5:02             ` Kirill A. Shutemov
2008-05-22  6:50               ` Led
2008-05-22  7:14                 ` Kirill A. Shutemov [this message]
2008-05-22  8:15                   ` [devel] [JT] " Andrey Rahmatullin
2008-05-30 22:53                   ` [devel] " Dmitry V. Levin
2008-05-31  8:54                     ` Kirill A. Shutemov
2008-05-31 10:47                       ` Dmitry V. Levin
2008-05-30 22:47                 ` Dmitry V. Levin
2008-05-30 23:00                   ` Led
2008-05-30 23:05                     ` 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=20080522071403.GA6179@localhost.localdomain \
    --to=kirill@shutemov.name \
    --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