diff options
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h index 6221c6e..81685e2 100644 --- a/gold/output.h +++ b/gold/output.h @@ -1714,6 +1714,16 @@ class Output_section : public Output_data set_flags(elfcpp::Elf_Xword flags) { this->flags_ = flags; } + // Update the output section flags based on input section flags. + void + update_flags_for_input_section(elfcpp::Elf_Xword flags) + { + this->flags_ |= (flags + & (elfcpp::SHF_WRITE + | elfcpp::SHF_ALLOC + | elfcpp::SHF_EXECINSTR)); + } + // Return the entsize field. uint64_t entsize() const |