Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 23:28:58 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r317215 - head/lib/clang
Message-ID:  <0E80DA66-5D0B-4DC2-8AF9-F2136C1D627E@FreeBSD.org>
In-Reply-To: <21e86609-e5f6-48ae-b391-38e5e14fc29b@selasky.org>
References:  <201704202100.v3KL0938093345@repo.freebsd.org> <21e86609-e5f6-48ae-b391-38e5e14fc29b@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 20 Apr 2017, at 23:03, Hans Petter Selasky <hps@selasky.org> wrote:
> 
> 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
>> 
>> 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.
>> 
>>  MFC after:	3 days
>> 
> 
> Hi,
> 
> 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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAlj5KCQACgkQsF6jCi4glqOTqwCfQyA9PAYf0I48KRt6tCq+8TbH
VvIAn376GFS6OekSQ/374cwu4yZ2SR3S
=9aIm
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0E80DA66-5D0B-4DC2-8AF9-F2136C1D627E>