diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-10-19 15:51:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-10-19 15:51:00 +0000 |
commit | bfc34b3fc4fcc2751065338a2dad8cd6c4db49e8 (patch) | |
tree | 18fbfb5096582537f95fdcc2cae60e2e8b79ec4c /gold/script-sections.cc | |
parent | 6caca83cb89f391d936c4a2a6cefea8cc1e167c8 (diff) | |
download | gdb-bfc34b3fc4fcc2751065338a2dad8cd6c4db49e8.zip gdb-bfc34b3fc4fcc2751065338a2dad8cd6c4db49e8.tar.gz gdb-bfc34b3fc4fcc2751065338a2dad8cd6c4db49e8.tar.bz2 |
PR gold/13163
* script-sections.cc
(Output_section_element_dot_assignment::needs_output_section): New
function.
Diffstat (limited to 'gold/script-sections.cc')
-rw-r--r-- | gold/script-sections.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 1fad88d..eba6b9d 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, |