From: Ian Lance Taylor Date: Wed, 3 Nov 2010 14:07:49 +0000 (+0000) Subject: * script-sections.cc (Script_sections::find_memory_region): Check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f9a327892c097ae5504004c6a11f7468df16c08;p=binutils-gdb.git * script-sections.cc (Script_sections::find_memory_region): Check for a NULL output section pointer. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index ad1bd1972b8..caae10c3e20 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 Ryan Mansfield + + * script-sections.cc (Script_sections::find_memory_region): Check + for a NULL output section pointer. + 2010-10-29 Doug Kwan * arm.cc (Arm_outout_section::fix_exidx_coverage): Adjust call to diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 57e5279dd2a..487cc24bc98 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;