From: Thomas Kahle <tomka@gentoo.org>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] sci-libs/mpir for the main tree
Date: Fri, 17 Dec 2010 16:03:01 +0100 [thread overview]
Message-ID: <20101217150301.GG15522@denkmatte.Speedport_W_502V_Typ_A> (raw)
In-Reply-To: <201012171516.02337.cschwan@students.uni-mainz.de>
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
On 15:16 Fri 17 Dec , Christopher Schwan wrote:
> On Friday 17 December 2010 14:55:03 Thomas Kahle wrote:
> > On 14:22 Fri 17 Dec , Christopher Schwan wrote:
> > > Mpir's configure scripts looks like its adding "-Wl,-z,noexecstack" if it
> > > detects a gcc+x86/amd64 configuration - so I guess noexecstack should
> > > work out of the box. If it does not I would consider this as broken.
> >
> > Yes, I saw that. The configure method fails directly, it just does *not*
> > add the ldflag (at least when configure is run by portage).
> >
> > I also tried to add "-Wl,-z,noexecstack" via append-ldflags, and it is
> > indeed appended as visible in the compile output, but the exec stacks
> > are still there and the QA warning comes up, so I guess we can consider
> > this broken and stick with your solution of patching the asm (which sill
> > works fine)
>
> Did you read http://www.gentoo.org/proj/en/hardened/gnu-stack.xml ? The
> document proposes a slightly different approach for assembler files:
>
> append-flags -Wa,--noexecstack
Read it again now. Indeed, "-Wa,--noexecstack" also works, but the page
says that patching is the preferred approach... well at least if the
patches land upstream at some point. I guess it just does not matter.
Cheers,
Thomas
--
Thomas Kahle
http://dev.gentoo.org/~tomka/
[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]
prev parent reply other threads:[~2010-12-17 15:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 23:42 [gentoo-science] sci-libs/mpir for the main tree Thomas Kahle
2010-11-09 8:19 ` François Bissey
2010-11-10 8:41 ` Christopher Schwan
2010-11-11 19:11 ` Thomas Kahle
2010-11-11 20:22 ` François Bissey
2010-11-11 20:30 ` François Bissey
2010-11-11 19:35 ` Thomas Kahle
2010-12-17 13:00 ` Thomas Kahle
2010-12-17 13:22 ` Christopher Schwan
2010-12-17 13:55 ` Thomas Kahle
2010-12-17 14:16 ` Christopher Schwan
2010-12-17 15:03 ` Thomas Kahle [this message]
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=20101217150301.GG15522@denkmatte.Speedport_W_502V_Typ_A \
--to=tomka@gentoo.org \
--cc=gentoo-science@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox