[gold] Enable function-sections by default.
authorDavide Italiano <davide@freebsd.org>
Tue, 25 Jul 2017 23:32:50 +0000 (23:32 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 25 Jul 2017 23:32:50 +0000 (23:32 +0000)
commit756feb2a516879974b1ffb7368ff64a84e1b830a
treed1a155f31692d7fb57af230a4509b46c41cd65c5
parent8109789a33c079d3c1a4aacb06516304d6a173e7
[gold] Enable function-sections by default.

This is needed, among others, to respect --section-ordering-file
with LTO. I'll follow up with a similar change for data sections.

I hope every version of gold available on the bots has support for
--section-ordering file.

llvm-svn: 309056
llvm/test/tools/gold/X86/multiple-sections.ll [new file with mode: 0644]
llvm/tools/gold/gold-plugin.cpp