svn commit: r317215 - head/lib/clang

Dimitry Andric dim at FreeBSD.org
Thu Apr 20 21:29:18 UTC 2017


On 20 Apr 2017, at 23:03, Hans Petter Selasky <hps at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170420/72709554/attachment.sig>


More information about the svn-src-head mailing list