From a45248e08687102273909f5d122c6d71e44be5d3 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Sat, 15 Nov 2008 01:40:23 +0000 Subject: [PATCH] * reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address instead of -1U. --- gold/ChangeLog | 5 +++++ gold/reloc.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 41c6162..a83aeb3 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2008-11-14 Cary Coutant + + * reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address + instead of -1U. + 2008-11-05 Craig Silverstein * options.cc (General_options::parse_dynamic_list): New function. diff --git a/gold/reloc.cc b/gold/reloc.cc index 481617d..9a444a2 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -274,7 +274,7 @@ Sized_relobj::do_read_relocs(Read_relocs_data* rd) sr.sh_type = sh_type; sr.reloc_count = reloc_count; sr.output_section = os; - sr.needs_special_offset_handling = out_offsets[shndx] == -1U; + sr.needs_special_offset_handling = out_offsets[shndx] == invalid_address; sr.is_data_section_allocated = is_section_allocated; } -- 2.7.4