Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 llvm-svn: 284140
- Loading branch information
1 parent
d9ca358
commit 9c6e556
Showing
2 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// RUN: touch %t.o | ||
// | ||
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \ | ||
// RUN: -Wl,-plugin-opt=foo -O3 \ | ||
// RUN: -ffunction-sections -fdata-sections \ | ||
// RUN: | FileCheck %s | ||
// CHECK: "-plugin-opt=-function-sections" | ||
// CHECK: "-plugin-opt=-data-sections" |