From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] libstdc++4.1-devel сломан?
Date: Fri, 2 Jun 2006 15:00:32 +0400
Message-ID: <20060602110032.GH8164@localhost.localdomain> (raw)
In-Reply-To: <679044850606020047u69cdd37j796507a7f05d830d@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
On Fri, Jun 02, 2006 at 11:47:11AM +0400, Damir Shayhutdinov wrote:
> 01.06.06, Alexey Tourbin<at@altlinux.ru> написал(а):
> > > Убрать -Wl,-z,defs - в этом всё равно нет смысла при линковке -shared.
> >
> > Почему не имеет смысла?>
> ld(1)
> ----
> -z
> defs
> Disallows undefined symbols in object files. Undefined symbols
> in shared libraries are still allowed.
Автор мана имел в виду другое.
$ cat test.c
test()
{
no_such_function();
}
$ gcc -shared -fPIC -o libtest.so test.c
$ ls -l libtest.so
-rwxr-xr-x 1 at at 5591 Jun 2 14:54 libtest.so
$ gcc -shared -fPIC -o libtest.so test.c -Wl,-z,defs
/tmp/.private/at/ccCRSta9.o: In function `test':
test.c:(.text+0x14): undefined reference to `no_such_function'
collect2: ld returned 1 exit status
$
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-06-02 11:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-01 15:36 Valery V. Inozemtsev
2006-06-01 15:43 ` Dmitry V. Levin
2006-06-01 16:23 ` Valery V. Inozemtsev
2006-06-01 16:41 ` Alexey Tourbin
2006-06-02 7:47 ` Damir Shayhutdinov
2006-06-02 11:00 ` Alexey Tourbin [this message]
2006-06-02 13:17 ` Dmitry V. Levin
2006-06-02 13:54 ` Alexey Tourbin
2006-06-02 14:02 ` Dmitry V. Levin
2006-06-02 14:25 ` Alexey Tourbin
2006-06-02 14:01 ` Sergey Vlasov
2006-06-02 14:06 ` 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=20060602110032.GH8164@localhost.localdomain \
--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