From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56232 invoked by alias); 3 Apr 2015 19:34:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 56217 invoked by uid 89); 3 Apr 2015 19:34:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Apr 2015 19:34:09 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Ye7Lx-0005bA-9v from joseph_myers@mentor.com ; Fri, 03 Apr 2015 12:34:05 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.224.2; Fri, 3 Apr 2015 20:34:03 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1Ye7Lu-0007sh-CK; Fri, 03 Apr 2015 19:34:02 +0000 Date: Fri, 03 Apr 2015 19:34:00 -0000 From: Joseph Myers To: Ilya Enkovich CC: Richard Biener , gcc-patches Subject: Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX In-Reply-To: <20150331094702.GC52842@msticlxl57.ims.intel.com> Message-ID: References: <20150318115630.GA64546@msticlxl57.ims.intel.com> <20150331094702.GC52842@msticlxl57.ims.intel.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-04/txt/msg00146.txt.bz2 On Tue, 31 Mar 2015, Ilya Enkovich wrote: > +library. It also passes '-z bndplt' to a linker in case it supports this > +option (which is checked on libmpx configuration). Note that old versions > +of linker may ignore option. Gold linker doesn't support '-z bndplt' > +option. With no '-z bndplt' support in linker all calls to dynamic libraries > +lose passed bounds reducing overall protection level. It's highly > +recommended to use linker with '-z bndplt' support. In case such linker > +is not available it is adviced to always use @option{-static-libmpxwrappers} > +for better protection level or use @option{-static} to completely avoid > +external calls to dynamic libraries. MPX-based instrumentation Use @samp{-z bndplt} rather than '' quoting (but Sandra may have further advice on the substance of this documentation). -- Joseph S. Myers joseph@codesourcery.com