From: "Максим Иванов" <ivanov@cg.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] -fpic & -shared
Date: Thu, 27 Dec 2007 12:02:51 +0300
Message-ID: <200712271202.51615.ivanov@cg.ru> (raw)
In-Reply-To: <20071227084430.GE24194@solemn.turbinal>
В сообщении от Thursday 27 December 2007 11:44:30 Alexey Tourbin написал(а):
> On Thu, Dec 27, 2007 at 11:39:57AM +0300, Максим Иванов wrote:
> > Когда собираем бинарник с опцией -shared (т.е. собираем .so),
> > позволительно ли включать в него объектники скомпиленные без -fpic?
>
> Нет.
Где можно про это более конкретно почитать? Когда искал наткнулся вот на такое
письмо http://sources.redhat.com/ml/glibc-linux/2000-q2/msg00066.html где
впринципе утверждается обратное:
"Indeed -fpic and -fPIC are not necessary for shared libraries to be used
either by ld.so or libdl.so. Why? I have no idea... As long as you do
-shared with gcc, you're golden."
next prev parent reply other threads:[~2007-12-27 9:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-27 8:39 Максим Иванов
2007-12-27 8:44 ` Alexey Tourbin
2007-12-27 9:02 ` Максим Иванов [this message]
2007-12-27 9:14 ` Alexey Tourbin
2007-12-27 9:26 ` Максим Иванов
2007-12-27 9:54 ` Alexey Tourbin
2007-12-27 10:12 ` 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=200712271202.51615.ivanov@cg.ru \
--to=ivanov@cg.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