ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] PIE Executables
Date: Wed, 21 May 2008 23:44:39 +0300
Message-ID: <200805212344.39531.ledest@gmail.com> (raw)
In-Reply-To: <20080521192127.GA15614@localhost.localdomain>

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.

Нет там такой эвристики.

>
> > Насколько я понял, это происходит из-за того, что этот бинарник линкуется
> > с -fpie. У нас этого делать нельзя?
>
> -fpie -- это опция компилятора. Линковщику должа ещё передоваться -pie.
> Как именно собирается бинарник? Можно лог?

Да, я опечатался: линкуется с -pie

-- 
Led

  reply	other threads:[~2008-05-21 20:44 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 [this message]
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
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=200805212344.39531.ledest@gmail.com \
    --to=ledest@gmail.com \
    --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