Hash tables, dynamic section, i386 PLT, gold_assert.
[deliverable/binutils-gdb.git] / gold / resolve.cc
index 2b6d65cd6b83d098d1f9b091a29c2e674a076e17..891de8c7c9476ea1967783781bfc0966f61a890a 100644 (file)
@@ -19,7 +19,7 @@ void
 Symbol::override_base(const elfcpp::Sym<size, big_endian>& sym,
                      Object* object)
 {
-  assert(this->source_ == FROM_OBJECT);
+  gold_assert(this->source_ == FROM_OBJECT);
   this->u_.from_object.object = object;
   // FIXME: Handle SHN_XINDEX.
   this->u_.from_object.shnum = sym.get_st_shndx();
@@ -98,12 +98,12 @@ Symbol_table::resolve(Sized_symbol<size>* to,
     case elfcpp::STB_LOCAL:
       // We should only see externally visible symbols in the symbol
       // table.
-      abort();
+      gold_unreachable();
 
     default:
       // Any target which wants to handle STB_LOOS, etc., needs to
       // define a resolve method.
-      abort();
+      gold_unreachable();
     }
 
   if (to->source() == Symbol::FROM_OBJECT
@@ -507,7 +507,7 @@ Symbol_table::resolve(Sized_symbol<size>* to,
       return;
 
     default:
-      abort();
+      gold_unreachable();
     }
 }
 
This page took 0.024733 seconds and 4 git commands to generate.