ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] I: gcc4.1-4.1.1-alt8, glibc-2.5-alt1
Date: Wed, 4 Oct 2006 01:55:22 +0400
Message-ID: <20061003215522.GA32008@basalt.office.altlinux.org> (raw)
In-Reply-To: <20061003214619.GB9274@osdn.org.ua>

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

On Wed, Oct 04, 2006 at 12:46:19AM +0300, Serge Ryabchun wrote:
> On Tue, Oct 03, 2006 at 03:59:54PM +0400, Dmitry V. Levin wrote:
> > Что касается параметров сборки по умолчанию, то, между прочим, в FC6 по
> > умолчанию включили вот что:
> > $ rpmquery -p --qf '%{OPTFLAGS}\n' libutempter-1.1.4-3.fc6.i386.rpm 
> > -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> > -fasynchronous-unwind-tables
> > 
> > Я думаю, что нам имеет смысл включить как -Wp,-D_FORTIFY_SOURCE=2
> > так и -fstack-protector по умолчанию прямо в gcc по аналогии с
> > --hash-style=gnu.
> 
> Им же потом не только libutempter собирать.

Я, кстати, не в курсе, у них %optflags при сборке всех пакетов одинаковые
или нет?

> Может и ядро придется,

Да, для kernel это (пока и к большому сожалению) противопоказано.
Но это все заинтересованные и так знают, думаю что они уже сейчас могут
написать -Wp,-U_FORTIFY_SOURCE -fno-stack-protector.

> все же может не нужно, а? Выставлять FORTIFY_SOURCE в 0 и сбрасывать
> fstack_protector вечно будет забываться в самый неподходящий момент.

Я полагаю, что если даже в FC это сделали по умолчанию (в %optflags, не в
gcc, но это не принципиально), то мы тоже должны быть способны с этим
справиться.  На всякий случай я попробую посмотреть, какие пакеты в FC6
выключают _FORTIFY_SOURCE и stack-protector.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-10-03 21:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-09  0:07 [devel] DT_GNU_HASH Alexey Tourbin
2006-08-09  0:15 ` Dmitry V. Levin
2006-08-09  0:58   ` Alexey Tourbin
2006-08-09 12:34     ` Dmitry V. Levin
2006-08-09 13:20       ` Денис Смирнов
2006-08-09 13:26         ` Dmitry V. Levin
2006-08-09 10:49   ` Денис Смирнов
2006-08-09 12:32     ` Dmitry V. Levin
2006-10-03 11:59       ` [devel] I: gcc4.1-4.1.1-alt8, glibc-2.5-alt1 Dmitry V. Levin
2006-10-03 12:30         ` Damir Shayhutdinov
2006-10-03 13:55           ` Dmitry V. Levin
2006-10-03 14:38         ` Денис Смирнов
2006-10-03 18:34           ` Dmitry V. Levin
2006-10-03 21:27             ` Денис Смирнов
2006-10-04  6:49           ` Ildar Mulyukov
2006-10-04  8:01             ` Денис Смирнов
2006-10-03 21:46         ` Serge Ryabchun
2006-10-03 21:55           ` Dmitry V. Levin [this message]
2006-10-10 21:43             ` 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=20061003215522.GA32008@basalt.office.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