diff options
Diffstat (limited to 'gold/script-sections.cc')
-rw-r--r-- | gold/script-sections.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 4891ac7..13c9771 100644 --- a/gold/script-sections.cc +++ b/gold/script-sections.cc @@ -2657,7 +2657,8 @@ Script_sections::create_segments(Layout* layout) need_new_segment = true; } else if (is_current_seg_readonly - && ((*p)->flags() & elfcpp::SHF_WRITE) != 0) + && ((*p)->flags() & elfcpp::SHF_WRITE) != 0 + && !parameters->options().omagic()) { // Don't put a writable section in the same segment as a // non-writable section. |