]> granicus.if.org Git - clang/commit
Pass -ffunction-sections/-fdata-sections along to gold-plugin
authorTeresa Johnson <tejohnson@google.com>
Thu, 13 Oct 2016 18:05:53 +0000 (18:05 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 13 Oct 2016 18:05:53 +0000 (18:05 +0000)
commit9c9d4a4909de34b02fc881e76742301db8487f0b
tree6bc720638fa777b1903d728602e88fdd99551677
parent5ff79003433bb41aac72efe776173fc7ceeb8af8
Pass -ffunction-sections/-fdata-sections along to gold-plugin

Summary:
These options need to be passed to the plugin in order to have
an effect on LTO/ThinLTO compiles.

Reviewers: mehdi_amini, pcc

Subscribers: jfb, dschuff, mehdi_amini, cfe-commits

Differential Revision: https://reviews.llvm.org/D24644

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284140 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/gold-lto-sections.c [new file with mode: 0644]