diff options
Diffstat (limited to 'binutils-2.19/gold/output.h')
-rw-r--r-- | binutils-2.19/gold/output.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/binutils-2.19/gold/output.h b/binutils-2.19/gold/output.h index da321b6..28bcb65 100644 --- a/binutils-2.19/gold/output.h +++ b/binutils-2.19/gold/output.h @@ -3437,6 +3437,19 @@ class Output_section : public Output_data input_sections() const { return this->input_sections_; } + // Whether this always keeps an input section list + bool + always_keeps_input_sections() const + { return this->always_keeps_input_sections_; } + + // Always keep an input section list. + void + set_always_keeps_input_sections() + { + gold_assert(this->current_data_size_for_child() == 0); + this->always_keeps_input_sections_ = true; + } + private: // We only save enough information to undo the effects of section layout. class Checkpoint_output_section @@ -3741,6 +3754,8 @@ class Output_section : public Output_data bool section_offsets_need_adjustment_ : 1; // Whether this is a NOLOAD section. bool is_noload_ : 1; + // Whether this always keeps input section. + bool always_keeps_input_sections_ : 1; // For SHT_TLS sections, the offset of this section relative to the base // of the TLS segment. uint64_t tls_offset_; |