From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] libc on i586: WTF?
Date: Mon, 18 Oct 2010 12:20:19 +0400
Message-ID: <20101018082018.GC15700@altlinux.org> (raw)
In-Reply-To: <4CBBC0EC.8030609@mmedia2.kemsu.ru>
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
On Mon, Oct 18, 2010 at 11:37:16AM +0800, REAL wrote:
> Sergey Vlasov пишет:
> >>Символ __stack_chk_fail_local присутствует только
> >>в libc.a, не в libc.so:
> >
> >Ещё он присутствует в libc_nonshared.a, при этом
> >файл libc.so,
> >используемый при компоновке, на самом
> >деле представляет собой ld
> >script:
> >
> >/* GNU ld script
> > Use the shared library, but some functions are only in
> > the static library, so try that secondarily. */
> >OUTPUT_FORMAT(elf32-i386)
> >GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED (
> >/lib/ld-linux.so.2 ) )
> >
> >Т.е., в каждый исполняемый файл или
> >разделяемую библиотеку попадает
> >собственная копия необходимых функций
> >из libc_nonshared.a.
>
> Т.е. мне достаточно будет собирать
> библиотеки с -lc? glibc-devel-static использовать
> не нужно?
glibc-devel-static для этого не потребуется.
Даже -lc не нужно, если вы используете gcc.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-10-18 8:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-16 4:26 REAL
2010-10-16 11:18 ` Dmitry V. Levin
2010-10-18 3:32 ` REAL
2010-10-18 8:19 ` Dmitry V. Levin
2010-10-16 11:40 ` Sergey Vlasov
2010-10-18 3:37 ` REAL
2010-10-18 8:20 ` Dmitry V. Levin [this message]
2010-10-18 7:33 ` REAL
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=20101018082018.GC15700@altlinux.org \
--to=ldv@altlinux.org \
--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