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.
This commit is contained in:
parent
6bcc772dec
commit
c7f3c37113
@ -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>
|
2010-01-22 Doug Kwan <dougkwan@google.com>
|
||||||
|
|
||||||
* arm.cc (Target_arm::do_relax): Record an output section for section
|
* arm.cc (Target_arm::do_relax): Record an output section for section
|
||||||
|
@ -4587,7 +4587,9 @@ Arm_exidx_merged_section::do_output_offset(
|
|||||||
|| shndx != this->exidx_input_section_.shndx())
|
|| shndx != this->exidx_input_section_.shndx())
|
||||||
return false;
|
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.
|
// Input offset is out of valid range.
|
||||||
*poutput = -1;
|
*poutput = -1;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user