diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-11-03 14:07:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-11-03 14:07:49 +0000 |
commit | 3f9a327892c097ae5504004c6a11f7468df16c08 (patch) | |
tree | 90091128476f84bab9a10334e87feb1dc9aaca14 /gold/script-sections.cc | |
parent | 120bd36024971107c9f5dce6882e343c836a6402 (diff) | |
download | gdb-3f9a327892c097ae5504004c6a11f7468df16c08.zip gdb-3f9a327892c097ae5504004c6a11f7468df16c08.tar.gz gdb-3f9a327892c097ae5504004c6a11f7468df16c08.tar.bz2 |
* script-sections.cc (Script_sections::find_memory_region): Check
for a NULL output section pointer.
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; |