From 3f9a327892c097ae5504004c6a11f7468df16c08 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 3 Nov 2010 14:07:49 +0000 Subject: * script-sections.cc (Script_sections::find_memory_region): Check for a NULL output section pointer. --- gold/ChangeLog | 5 +++++ gold/script-sections.cc | 1 + 2 files changed, 6 insertions(+) (limited to 'gold') diff --git a/gold/ChangeLog b/gold/ChangeLog index ad1bd19..caae10c 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 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; -- cgit v1.1