From owner-freebsd-arch@FreeBSD.ORG Thu Oct 16 21:59:53 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0B22274 for ; Thu, 16 Oct 2014 21:59:53 +0000 (UTC) Received: from mail-vc0-x231.google.com (mail-vc0-x231.google.com [IPv6:2607:f8b0:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F57B790 for ; Thu, 16 Oct 2014 21:59:53 +0000 (UTC) Received: by mail-vc0-f177.google.com with SMTP id hq11so3392011vcb.22 for ; Thu, 16 Oct 2014 14:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=l1F9RHYdJxV1YTH3t1WkLqQSEVqGknm58MykKfGjFHs=; b=gJLALuiYyNgsozf/HxasRV+OGC8yDtKQTdDBp7bwrs58Sjpat4C/L47RDPB3gJHQXT iXV+8hB+4Kr8GKMdi7yyQxHGydVt9nRlLkfIRmEM7+pmaWewdbpEkrkJSg7ZL4F9H2/i mQn9cSjdjgwMZAdxRODEHIpmOwvYuvHH+KFnWTpy1K0sO+Q2Dj1gONN3yDj8SCiilWFK LTFqmwMbbySM8fqRw5p2P3llvI7lqU33yPZCXBnhYsqm8yQ1RpyslSZIs0RR9cgWiR1S 7AgoNYLspNizI5MvjC4PyF+V5Jaf4hqQXJHO4Ir6dDRnJkEGR5+N08d8I3G+unaBYgy0 ZWTg== MIME-Version: 1.0 X-Received: by 10.52.99.199 with SMTP id es7mr3127927vdb.61.1413496792611; Thu, 16 Oct 2014 14:59:52 -0700 (PDT) Sender: jlehen@gmail.com Received: by 10.31.136.79 with HTTP; Thu, 16 Oct 2014 14:59:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Oct 2014 23:59:52 +0200 X-Google-Sender-Auth: Wr4SvKvKjFppryH9Utap8QVBE3Q Message-ID: Subject: Re: PIE/PIC support on base From: Jeremie Le Hen To: David Carlier Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 21:59:53 -0000 On Thu, Oct 16, 2014 at 8:21 PM, David Carlier wrote: > > I chose the "atomic" approach, at the moment very few binaries are > concerned at the moment. So I applied INCLUDE_PIC_ARCHIVE in the needed > libraries plus created WITH_PIE which add fPIE/fpie -pie flags only if you > include (which include ...) otherwise other > binaries include as usual hence does not apply. Look > reasonable approach ? I think I understand what you mean. But I think PIE is commonplace nowadays and I don't understand what you win by not enabling it for the whole system. Is it a performance concern? Is it to preserve conservative minds from to much change? :) -- Jeremie Le Hen jlh@FreeBSD.org