From owner-freebsd-current@FreeBSD.ORG Wed Sep 18 00:07:07 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CE90F6E1; Wed, 18 Sep 2013 00:07:07 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E05DD2EF4; Wed, 18 Sep 2013 00:07:06 +0000 (UTC) Received: by mail-bk0-f51.google.com with SMTP id mx10so2558634bkb.10 for ; Tue, 17 Sep 2013 17:06:49 -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=I68lb6FkBTWZulQ6sxtAxjhBR3lvhRMVk6RrrEtaxDU=; b=BnnZfBv/EN+tnl9Gdaq6EmWc/Nj1HEwx2BHwjpr4gSJi/pGdo26DziUzpH1hje/so5 6dpKrPyFLNMZH36q40Nhcbd+uTMjTWW/mu3sBM3csyCklm8KMpvzXeyGxcqbG0Dtl4Dc 9FoLhgsGWPfmMZxQx2QwzVHqY/+AJcISuOBbbOzqVwpqkRqgDCu0ZYo8HMpZhwPgpMde ogBM0Mc5HF3Cql3Za4u8RTRXnC8QlSp35JhuIawRfI3/ZYibXo/gEew9ibz7dUiNRnLI X06aiML/86rQXAEk5rwYUH0nHkJ99dz2HcVXUVZdCQz0ckGxs6jTvDE2HM8pm3xZswAR hW+Q== MIME-Version: 1.0 X-Received: by 10.204.224.142 with SMTP id io14mr9477486bkb.27.1379462809797; Tue, 17 Sep 2013 17:06:49 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.205.13.199 with HTTP; Tue, 17 Sep 2013 17:06:49 -0700 (PDT) Received: by 10.205.13.199 with HTTP; Tue, 17 Sep 2013 17:06:49 -0700 (PDT) In-Reply-To: References: <1379460140.1197.59.camel@revolution.hippie.lan> Date: Tue, 17 Sep 2013 17:06:49 -0700 X-Google-Sender-Auth: tbKJzYdWQqXx7hYHfE5t480Hb0I Message-ID: Subject: Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections From: Justin Hibbits To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: mdf@freebsd.org, FreeBSD Current , Ian Lepore , Ed Schouten X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 00:07:08 -0000 On Sep 17, 2013 4:31 PM, "Adrian Chadd" wrote: > > On 17 September 2013 16:22, Ian Lepore wrote: > > > On Tue, 2013-09-17 at 14:56 -0700, Adrian Chadd wrote: > > > ... I'd rather see if we can actually separate out things some more so > > > these builds can shrink. > > > > > > Eg, if there's malloc related functions that aren't used, maybe we should > > > break malloc down into a directory full of functions. > > > > > > > Why is that better than using this automated solution? > > > > Not everyone is going to run clang on their target development platform? :-) > > Personally I'd rather structure my work to behave better instead of doing > something that relies on a specific tool/suite to be able to optimise. > Gcc also supports this. I used it when generating builds with newlib for microcontrollers at a previous job. -Justin