From owner-svn-src-all@freebsd.org Thu Apr 20 21:29:18 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 260FAD48DF6; Thu, 20 Apr 2017 21:29:18 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFAEA39C; Thu, 20 Apr 2017 21:29:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::4c69:647b:8bdc:dcb] (unknown [IPv6:2001:470:7a58:0:4c69:647b:8bdc:dcb]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B9711876F; Thu, 20 Apr 2017 23:29:08 +0200 (CEST) From: Dimitry Andric Message-Id: <0E80DA66-5D0B-4DC2-8AF9-F2136C1D627E@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_737E4804-0F46-41B5-908C-ABDF0C75DFCE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r317215 - head/lib/clang Date: Thu, 20 Apr 2017 23:28:58 +0200 In-Reply-To: <21e86609-e5f6-48ae-b391-38e5e14fc29b@selasky.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org To: Hans Petter Selasky References: <201704202100.v3KL0938093345@repo.freebsd.org> <21e86609-e5f6-48ae-b391-38e5e14fc29b@selasky.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 21:29:18 -0000 --Apple-Mail=_737E4804-0F46-41B5-908C-ABDF0C75DFCE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Apr 2017, at 23:03, Hans Petter Selasky wrote: >=20 > On 04/20/17 23:00, Dimitry Andric wrote: >> Author: dim >> Date: Thu Apr 20 21:00:09 2017 >> New Revision: 317215 >> URL: https://svnweb.freebsd.org/changeset/base/317215 >>=20 >> Log: >> Add function and data sections when building llvm, clang, lld and = lldb, >> and allow the linker to garbage collect them. This shaves off up to = a >> few MB from the final executables. >>=20 >> MFC after: 3 days >>=20 >=20 > Hi, >=20 > Just curious. Does the i386 and amd64 built "ld" utility support = garbage collection, or is this feature only intended for arm and = friends? As far as I know, GNU ld (ours is from ~2007) has supported GC'ing sections since a very long time. OTOH, if you meant LLVM's lld, then yes, that also supports --gc-sections. -Dimitry --Apple-Mail=_737E4804-0F46-41B5-908C-ABDF0C75DFCE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlj5KCQACgkQsF6jCi4glqOTqwCfQyA9PAYf0I48KRt6tCq+8TbH VvIAn376GFS6OekSQ/374cwu4yZ2SR3S =9aIm -----END PGP SIGNATURE----- --Apple-Mail=_737E4804-0F46-41B5-908C-ABDF0C75DFCE--