From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: devel@lists.altlinux.org
Subject: Re: [devel] проблемы со сборкой deadbeef
Date: Tue, 12 Jun 2012 11:19:32 +0300
Message-ID: <20120612081932.GA19395@shutemov.name> (raw)
In-Reply-To: <20120612075754.GB6639@atlas.home>
On Tue, Jun 12, 2012 at 11:57:54AM +0400, Sergey Vlasov wrote:
> On Sun, Jun 10, 2012 at 07:15:24AM +0400, Andrew Clark wrote:
> > On 10.06.2012 05:06, REAL wrote:
> > > в новом deadbeef используется ассемблер, поэтому имеет смысл в спеке
> > > указать
> > > %set_verify_elf_method textrel=relaxed
>
> Видимо, в данном случае так и придётся сделать; пакет libav (откуда и
> был вытащен декодер в плагине ffap) собирается тоже с textrel=relaxed.
>
> > А корень проблемы можно узнать? В elf файле наличие какой-то секции
> > проверяется или что?
>
> Ассемблерный код должен быть написан с учётом использования -fPIC,
> однако в данном случае для 32-битного кода эта проблема практически не
> решаема из-за нехватки регистров.
Точнее решаема ценой производительности.
Есть мнение, что для производительности имеет смысл на 32-битной системе
всё (за исключением, наверно, glibc) собирать без -fPIC. А что бы код
всё-же получился shared использовать prelink и kernel same page (добавить
соответвующий madvise(2) в dynamic linker).
--
Kirill A. Shutemov
prev parent reply other threads:[~2012-06-12 8:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 16:47 Andrew Clark
2012-06-09 11:31 ` REAL
2012-06-09 19:27 ` Andrew Clark
2012-06-10 1:06 ` REAL
2012-06-10 3:15 ` Andrew Clark
2012-06-10 3:21 ` REAL
2012-06-12 7:57 ` Sergey Vlasov
2012-06-12 8:04 ` Andrew Clark
2012-06-12 8:19 ` Kirill A. Shutemov [this message]
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=20120612081932.GA19395@shutemov.name \
--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