From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] PIE Executables
Date: Sat, 31 May 2008 11:54:23 +0300
Message-ID: <20080531085422.GA8651@localhost.localdomain> (raw)
In-Reply-To: <20080530225318.GB11322@wo.int.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
On Sat, May 31, 2008 at 02:53:18AM +0400, Dmitry V. Levin wrote:
> On Thu, May 22, 2008 at 10:14:05AM +0300, Kirill A. Shutemov wrote:
> > On Thu, May 22, 2008 at 09:50:27AM +0300, Led wrote:
> > > Thursday, 22 May 2008 08:02:03 Kirill A. Shutemov написав:
> [...]
> > > > Эвристику ломает преждеверменный strip. Опция -s при линковке удаляет
> > > > символ __preinit_array_end по которому shared library отделяется от
> > > > position independed executable.
> > >
> > > Точно! Спасибо!
> > > Надо бы это где-то задокументировать. Потому как ИМХО неочевидно, что strip
> > > при сборке у нас, получается, недопустим :(
> >
> > Я считаю, что это слабость эвристики. Нужно что-то делать.
>
> Дело в том, что pic и pie объекты действительно слабо отличаются,
> см. напр. diff -u /usr/lib/ldscripts/elf_i386.x{s,d}
> Единственное, что можно попробовать, это проверку порядка секций,
> у pie objects .interp должна быть первой.
А может внести в эти ld-скрипты маркеры, по каторым детект pic vs. pie был
бы тривиальным?
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-05-31 8:54 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
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 [this message]
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=20080531085422.GA8651@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