From: Alexey Tourbin <at@altlinux.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] -fpic & -shared Date: Thu, 27 Dec 2007 12:14:11 +0300 Message-ID: <20071227091411.GF24194@solemn.turbinal> (raw) In-Reply-To: <200712271202.51615.ivanov@cg.ru> [-- Attachment #1: Type: text/plain, Size: 811 bytes --] On Thu, Dec 27, 2007 at 12:02:51PM +0300, Максим Иванов wrote: > В сообщении от Thursday 27 December 2007 11:44:30 Alexey Tourbin написал(а): > > On Thu, Dec 27, 2007 at 11:39:57AM +0300, Максим Иванов wrote: > > > Когда собираем бинарник с опцией -shared (т.е. собираем .so), > > > позволительно ли включать в него объектники скомпиленные без -fpic? > > > > Нет. > > Где можно про это более конкретно почитать? Можно начать читать с glibc/elf/rtld.c. > Когда искал наткнулся вот на такое > письмо 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." [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-27 9:14 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 ` Максим Иванов 2007-12-27 9:14 ` Alexey Tourbin [this message] 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=20071227091411.GF24194@solemn.turbinal \ --to=at@altlinux.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