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

--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 <hps@selasky.org> 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--



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