* gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Allow
authorCary Coutant <ccoutant@google.com>
Mon, 9 Apr 2012 23:32:20 +0000 (23:32 +0000)
committerCary Coutant <ccoutant@google.com>
Mon, 9 Apr 2012 23:32:20 +0000 (23:32 +0000)
low_pc == 0.

gold/ChangeLog
gold/gdb-index.cc

index c663ca7b19b01370917fbe6ab240c4d671537058..d6b02a693271e9a02886d99810e0dd35464e221a 100644 (file)
@@ -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>.
index 11b732a21c8f8d3d4b006f99b90a477710fb6e49..16e387180fdfe7236eb078998ab9c64b9f768bbc 100644 (file)
@@ -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)
         {
This page took 0.031937 seconds and 4 git commands to generate.