* script-sections.cc (Script_sections::find_memory_region): Check

for a NULL output section pointer.
This commit is contained in:
Ian Lance Taylor 2010-11-03 14:07:49 +00:00
parent 120bd36024
commit 3f9a327892
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-11-03 Ryan Mansfield <rmansfield@qnx.com>
* script-sections.cc (Script_sections::find_memory_region): Check
for a NULL output section pointer.
2010-10-29 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_outout_section::fix_exidx_coverage): Adjust call to

View File

@ -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;