From owner-freebsd-current@FreeBSD.ORG Mon Sep 16 01:08:21 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7EE71D3E for ; Mon, 16 Sep 2013 01:08:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1C5A820C3 for ; Mon, 16 Sep 2013 01:08:20 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id w61so3066140wes.31 for ; Sun, 15 Sep 2013 18:08:19 -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=Tk4i//HvhFWPqjqY6GKVeg7b8iUvdcuaYmOtgsJTK/0=; b=IP+91cL+V8zVAMEqDXgVdKUmsj4XGDFs2LtYxkTo9/4NuND53Ady9HeowUcIe5/TF2 3qAGv0Dv22R+TRMBPQnm5AnQrfW/o6PGoBoJAoyJ7PWdxW0JdsR7hA5ULSHofRrs3kS0 kYv2HzOCWtecN+eFnGKK1BiUbX95JuPWEePdaZUeqOPvi8QqDnlIigtj0iXMBOYHu+ex 8jmRT5+a4Vc1pivSE+J58EojExCCd9aehW9I3KBQs9MJsGrmec4US+QVGhxZSTSv3LI9 pR+2j+F9gqkbVRoNrDzomae9/C0aKD6HtSKUqD63Ss/XTlzvi6SAuxS6p2OjBBvMFzs/ CPuw== MIME-Version: 1.0 X-Received: by 10.180.93.104 with SMTP id ct8mr11463299wib.0.1379293699631; Sun, 15 Sep 2013 18:08:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sun, 15 Sep 2013 18:08:19 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Sep 2013 18:08:19 -0700 X-Google-Sender-Auth: oVUWJ5zr9tq2NqXMyYZmLya4DSc Message-ID: Subject: Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections From: Adrian Chadd To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Current 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: Mon, 16 Sep 2013 01:08:21 -0000 > > > The results are interesting. On amd64: > > - devd suddenly becomes 500 KB in size, instead of a megabyte, > - init's size drops from 900 KB to 600 KB, > - clang becomes a megabyte smaller. > .. so, I'd like to know specific information as to why these three are now smaller. So what's going on? -adrian