From owner-svn-src-head@FreeBSD.ORG Fri Jan 7 15:05:26 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63094106564A; Fri, 7 Jan 2011 15:05:26 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6B2AB8FC08; Fri, 7 Jan 2011 15:05:24 +0000 (UTC) Received: by wwf26 with SMTP id 26so17268074wwf.31 for ; Fri, 07 Jan 2011 07:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=iKKCPn0l71M/KrCBwZnjfK/tKevMbROvYuD0IgXkXco=; b=uYKEhLlPJqT3/4fjogDBCQNHuocOE+umpWjLGzv5f4d5W6QsyJVngLAFlxx6AL4ejL TC9GoWYsZs8iH4dYD7ricM6lLH/uSa1cqAMwPF8KEZ+mufWViwdbHdmAp+tXjfs2LE1i viXXbofOPy1XwUD5XdGq9hqLCAhWBkr/NpDRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=gWMwYKvj7sgCcvkBtZ75f+jUHuUqLBP0fkdc7idbowBXqL/YFq2WPOrOvFXPlXGoWY 0G6zCLxV3oB4hstfw36otMojhd8FVEXKC9Um8HO3X6EreE5UNoaEO93k4oF3CNYRjVqc BhwC7km2wNONPXMuTx8fitBeprn0K0nVQAsZg= Received: by 10.216.160.129 with SMTP id u1mr1502255wek.88.1294412723622; Fri, 07 Jan 2011 07:05:23 -0800 (PST) Received: from localhost ([188.72.223.162]) by mx.google.com with ESMTPS id n18sm12467125wee.40.2011.01.07.07.05.20 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Jan 2011 07:05:22 -0800 (PST) From: Anonymous To: Konstantin Belousov References: <201101071435.p07EZkNU055560__46495.048949919$1294410977$gmane$org@svn.freebsd.org> Date: Fri, 07 Jan 2011 18:05:16 +0300 In-Reply-To: <201101071435.p07EZkNU055560__46495.048949919$1294410977$gmane$org@svn.freebsd.org> (Konstantin Belousov's message of "Fri, 7 Jan 2011 14:35:46 +0000 (UTC)") Message-ID: <8662u0ycsz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r217101 - head/lib/libcompiler_rt X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 15:05:26 -0000 Konstantin Belousov writes: > Author: kib > Date: Fri Jan 7 14:35:45 2011 > New Revision: 217101 > URL: http://svn.freebsd.org/changeset/base/217101 > > Log: > On amd64 and i386, force assembler to mark objects compiled from the > assembler source for libcompiler_rt as not needed executable stack. This > is done with a hammer instead of properly marking each assembly file > with section .note.GNU-stack to avoid modifying contributed source. > > Discussed with: ed > > Modified: > head/lib/libcompiler_rt/Makefile > > Modified: head/lib/libcompiler_rt/Makefile > ============================================================================== > --- head/lib/libcompiler_rt/Makefile Fri Jan 7 14:32:29 2011 (r217100) > +++ head/lib/libcompiler_rt/Makefile Fri Jan 7 14:35:45 2011 (r217101) > @@ -156,4 +156,10 @@ SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/l > . endif > .endif > > +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" > +AFLAGS+=--noexecstack > +ACFLAGS+=-Wl,a,--noexecstack > +.endif Typo? -Wl,a,--foo vs. -Wa,--foo. From gcc(1) manpage Assembler Option -Wa,option -Xassembler option Linker Options -Wl,option -Xlinker option