diff options
Diffstat (limited to 'gold/script-sections.cc')
-rw-r--r-- | gold/script-sections.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 57e5279..487cc24 100644 --- a/gold/script-sections.cc +++ b/gold/script-sections.cc @@ -2238,6 +2238,7 @@ Script_sections::find_memory_region( // explicit region assignment, then we will return this region. Output_section* out_sec = section->get_output_section(); if (first_match == NULL + && out_sec != NULL && (*mr)->attributes_compatible(out_sec->flags(), out_sec->type())) first_match = *mr; |