Commit 7b29e725 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 727959 - Add symbol name to relocation errors in the linker. r=tglek

parent c3d9ce8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -628,7 +628,8 @@ CustomElf::RelocateJumps()
      symptr = GetSymbolPtrInDeps(strtab.GetStringAt(sym.st_name));

    if (symptr == NULL) {
      log("%s: Error: relocation to NULL @0x%08" PRIxAddr, GetPath(), rel->r_offset);
      log("%s: Error: relocation to NULL @0x%08" PRIxAddr " for symbol \"%s\"",
          GetPath(), rel->r_offset, strtab.GetStringAt(sym.st_name));
      return false;
    }
    /* Apply relocation */