From fd06b4aa51e5e4b322f4784e3ea248e25aab733a Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Fri, 5 Dec 2008 21:13:35 +0000 Subject: * layout.cc (Layout::include_section): Check for SHF_EXCLUDE. Handle --strip-lto-sections option. * options.h (strip_lto_sections): New option. --- gold/options.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gold/options.h') diff --git a/gold/options.h b/gold/options.h index be08d99..f92184f 100644 --- a/gold/options.h +++ b/gold/options.h @@ -748,6 +748,8 @@ class General_options DEFINE_bool(strip_debug_gdb, options::TWO_DASHES, '\0', false, N_("Strip debug symbols that are unused by gdb " "(at least versions <= 6.7)"), NULL); + DEFINE_bool(strip_lto_sections, options::TWO_DASHES, '\0', true, + N_("Strip LTO intermediate code sections"), NULL); DEFINE_bool(shared, options::ONE_DASH, '\0', false, N_("Generate shared library"), NULL); -- cgit v1.1