diff options
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/gdb-index.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index c663ca7..d6b02a6 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-04-09 Cary Coutant <ccoutant@google.com> + + * gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Allow + low_pc == 0. + 2012-04-06 Ian Lance Taylor <iant@google.com> * timer.cc: #include <unistd.h>. diff --git a/gold/gdb-index.cc b/gold/gdb-index.cc index 11b732a..16e3871 100644 --- a/gold/gdb-index.cc +++ b/gold/gdb-index.cc @@ -825,7 +825,7 @@ Gdb_index_info_reader::record_cu_ranges(Dwarf_die* die) off_t low_pc = die->ref_attribute(elfcpp::DW_AT_low_pc, &shndx); off_t high_pc = die->ref_attribute(elfcpp::DW_AT_high_pc, &shndx2); - if (low_pc != 0 && high_pc != 0 && low_pc != -1 && high_pc != -1) + if ((low_pc != 0 || high_pc != 0) && low_pc != -1 && high_pc != -1) { if (shndx != shndx2) { |