From bfc34b3fc4fcc2751065338a2dad8cd6c4db49e8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 19 Oct 2011 15:51:00 +0000 Subject: [PATCH] PR gold/13163 * script-sections.cc (Output_section_element_dot_assignment::needs_output_section): New function. --- gold/ChangeLog | 7 +++++++ gold/script-sections.cc | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 68572441b1a..d844b4001f8 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2011-10-19 Ian Lance Taylor + + PR gold/13163 + * script-sections.cc + (Output_section_element_dot_assignment::needs_output_section): New + function. + 2011-10-19 Ian Lance Taylor PR gold/13204 diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 1fad88dd81d..eba6b9d71e2 100644 --- a/gold/script-sections.cc +++ b/gold/script-sections.cc @@ -892,6 +892,12 @@ class Output_section_element_dot_assignment : public Output_section_element : val_(val) { } + // An assignment to dot within an output section is enough to force + // the output section to exist. + bool + needs_output_section() const + { return true; } + // Finalize the symbol. void finalize_symbols(Symbol_table* symtab, const Layout* layout, -- 2.30.2