From c7f3c371135283f5376966704680c4f712b8c8a9 Mon Sep 17 00:00:00 2001 From: Doug Kwan Date: Mon, 25 Jan 2010 17:30:29 +0000 Subject: [PATCH] 2010-01-25 Doug Kwan * arm.cc (Arm_exidx_merged_section::do_output_offset): Fix warning due to signed and unsigned comparison on a 32-bit host. --- gold/ChangeLog | 5 +++++ gold/arm.cc | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 94f2585c3a7..a29b25be3f9 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-01-25 Doug Kwan + + * arm.cc (Arm_exidx_merged_section::do_output_offset): + Fix warning due to signed and unsigned comparison on a 32-bit host. + 2010-01-22 Doug Kwan * arm.cc (Target_arm::do_relax): Record an output section for section diff --git a/gold/arm.cc b/gold/arm.cc index 03f59f69756..36ff359b212 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -4587,7 +4587,9 @@ Arm_exidx_merged_section::do_output_offset( || shndx != this->exidx_input_section_.shndx()) return false; - if (offset < 0 || offset >= this->exidx_input_section_.size()) + section_offset_type section_size = + convert_types(this->exidx_input_section_.size()); + if (offset < 0 || offset >= section_size) // Input offset is out of valid range. *poutput = -1; else -- 2.30.2