diff options
author | Doug Kwan <dougkwan@google.com> | 2010-01-25 17:30:29 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2010-01-25 17:30:29 +0000 |
commit | c7f3c371135283f5376966704680c4f712b8c8a9 (patch) | |
tree | 5f13656153eb886bce5bfaab0275b7e51903d3e9 | |
parent | 6bcc772dec145e131137cf8cbc3786f3c4d96003 (diff) | |
download | gdb-c7f3c371135283f5376966704680c4f712b8c8a9.zip gdb-c7f3c371135283f5376966704680c4f712b8c8a9.tar.gz gdb-c7f3c371135283f5376966704680c4f712b8c8a9.tar.bz2 |
2010-01-25 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_exidx_merged_section::do_output_offset):
Fix warning due to signed and unsigned comparison on a 32-bit host.
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/arm.cc | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 94f2585..a29b25b 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-01-25 Doug Kwan <dougkwan@google.com> + + * 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 <dougkwan@google.com> * arm.cc (Target_arm::do_relax): Record an output section for section diff --git a/gold/arm.cc b/gold/arm.cc index 03f59f6..36ff359 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<section_offset_type>(this->exidx_input_section_.size()); + if (offset < 0 || offset >= section_size) // Input offset is out of valid range. *poutput = -1; else |